You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
GitHub Actions is cloud agnostic, so any cloud will work. We'll show how to deploy to AWS in this course.
S3 Buckets
Amazon S3 Buckets are a very flexible type of data storage -- they can be configured to work in many different types of ways. They're popular for their security, scalability, and dependability. Our S3 Bucket will store our application, both in staging and in production.
Step 5: Confirm AWS S3 configuration
⌨️ Activity: Create an S3 bucket
Navigate to the Amazon S3 service and click on Create bucket.
See Create a Bucket on AWS documentation for the most detailed instructions.
Name the bucket whatever you'd like, and jot the name down.
Select a region, and jot it down. You'll need it later. These examples use US West (Oregon), also known as us-west-2. If you'd like to choose another region, make sure to update the aws-config.yml file to match.
For all other options, accept the defaults.
Edit the .github/aws-config.yml file on this branch, or use this quick link. (We recommend opening the quick link in another tab.)
Change the value of s3_bucket: to match your chosen bucket name.
In the same file, confirm that the region: value matches your chosen region for the S3 bucket.
Commit your changes.
I'll respond when I detect a commit on this branch.
To deploy successfully to our S3 bucket on AWS, we need a few special configuration files.
aws-config.yml
The aws-config.yml file is needed with the Deploy to AWS Action that we're using. How did we know that it's needed? In the documentation for the GitHub action, there are specific instructions about including this file, and where it needs to sit within the repository.
Whenever you're using a GitHub Action, it's important to read the documentation. There may be details like what secrets or other template files are required for the Action to work as expected.
sam-template.yml
This file is a bit trickier. The template aws-config.yml file that was documented with the action has a placeholder for this template, but doesn't specify what we should do.
This file is specific to deploying a serverless application to AWS. Specifically, an AWS SAM template tells AWS how to set up the application's architecture. Read more about it in AWS SAM Template Concepts in the AWS documentation.
In our case, we created the sam-template.yml for you. It contains information that's specific about the application's endpoints and structure.
Step 6: Approve the pull request
I've requested your approval on this pull request. Once you approve this, I will merge.
⌨️ Activity: Approve pull request adding aws-config.yml and sam-template.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AWS Configuration - S3 Buckets
GitHub Actions is cloud agnostic, so any cloud will work. We'll show how to deploy to AWS in this course.
S3 Buckets
Amazon S3 Buckets are a very flexible type of data storage -- they can be configured to work in many different types of ways. They're popular for their security, scalability, and dependability. Our S3 Bucket will store our application, both in staging and in production.
Step 5: Confirm AWS S3 configuration
⌨️ Activity: Create an S3 bucket
aws-config.ymlfile to match..github/aws-config.ymlfile on this branch, or use this quick link. (We recommend opening the quick link in another tab.)s3_bucket:to match your chosen bucket name.region:value matches your chosen region for the S3 bucket.I'll respond when I detect a commit on this branch.