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.
Documentation:
Closes #52
S3-deploy.yml
to automatically create a S3 bucket on AWS whenever pushing a branch todevelopment
.makeReactBucket.bash
script created by the devops team and utilizes an environmental variable based on the github action property,GITHUB_ACTOR
that creates the requested initials based on the github username's first 4 characters. (See the Gallery and Tutorial below for details)(User Story, Total time to complete the Sprint, and Acceptance Criteria can be found on the connected Issue)
File Locations
S3-deploy.yml
file can be found in the.github/workflow
folder for referencescripts
for any present and future github actions scripts has been created.makeReactBucket.bash
andmakeReactBucket.yml
files can be found in.github/scripts
Time Spent on Issue:
Gallery & GitHub Action Tutorial:
The Updated

S3-deploy.yml
file:(NOTE: Additional branches are added for testing purposes, but only the
development
branch for bothpush
andpull_request
will remain constant)The environment variable is created based on the github action property,

GITHUB_ACTOR
GITHUB_ACTOR
is the github username of the working branch. The property is to take the first four characters of that username to use as the requested initials called for in the script. In the example "User" would be extracted fromGITHUB_ACTOR
and placed in the environment variable,ACTOR_INITIALS
Further down in the file, when the

makeReactBucket.bash
script is ready to be run, the environment variable is called with those first four characters, along with the constant region in this case of us-west-2.Once you push your branch, return to github repo and click on the Actions tab then the S3-deploy action on the left, to see your build in process.

An
echo
statement have been provided to see your initials for the first portion of your bucket:Further down the build another

echo
statement will show your full bucket name.NOTE: The script is written to turn any uppercase characters to lowercase for proper bucket naming conventions
Go to AWS to find your bucket

Open your bucket to confirm the

index.html
and other react files have installedWhile on your bucket click on the

Properties
tabScroll all the way to the bottom to find your Static Website Hosting link. Double Click the link or copy/paste into a new window.

The current state of the react App should display.

Troubleshooting