-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Access-Labs-Inc/fix/deployment
Add deployment setup
- Loading branch information
Showing
12 changed files
with
104 additions
and
106 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Setup the AWS for distribution | ||
|
||
- S3 will save the files | ||
- Cloudfront will provide HTTPS for sending the files and CDN | ||
|
||
## Setup S3 bucket | ||
- Name: acs-widget-actions | ||
|
||
- Block all public access (bucket settings) | ||
- Block all public access: Off | ||
- Click yellow box - [x] I acknowledge that... | ||
|
||
- Bucket versioning - Disabled | ||
- Tags - None | ||
- Default encryption | ||
|
||
- Bucket policy | ||
```json | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Sid": "PublicReadGetObject", | ||
"Effect": "Allow", | ||
"Principal": "*", | ||
"Action": "s3:GetObject", | ||
"Resource": "arn:aws:s3:::acs-widget-actions/*" | ||
} | ||
] | ||
} | ||
``` | ||
- ACL disabled | ||
|
||
- CORS file | ||
```json | ||
[ | ||
{ | ||
"AllowedHeaders": [ | ||
"*" | ||
], | ||
"AllowedMethods": [ | ||
"GET" | ||
], | ||
"AllowedOrigins": [ | ||
"*" | ||
], | ||
"ExposeHeaders": [] | ||
} | ||
] | ||
``` | ||
|
||
- Directories: | ||
- acs-widget-actions-staging | ||
- acs-widget-actions | ||
|
||
### Github Action Secrets setup | ||
- AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY -> in 1Password or create new IAM user with full access to S3 | ||
- AWS_S3_BUCKET, AWS_S3_REGION -> 'acs-widget-actions', 'eu-central-1' | ||
- AWS_CF_DISTRIBUTION -> Is the Cloudfront distribution ID | ||
|
||
### Cloudfront setup | ||
- Create new distribution | ||
- Connect it to our existing bucket as Origin | ||
- Allow HTTP3 and HTTP with HTTPS | ||
- All the rest should stay default | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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