-
Notifications
You must be signed in to change notification settings - Fork 7
Code review demo #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Code review demo #60
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| AWSTemplateFormatVersion: '2010-09-09' | ||
| Description: AWS CloudFormation Template to deploy insecure infrastructure | ||
| Parameters: | ||
| CompanyName: | ||
| Description: Company Name | ||
| Type: String | ||
| Default: acme | ||
| Environment: | ||
| Description: Environment | ||
| Type: String | ||
| Default: dev | ||
| DBName: | ||
| Description: Name of the Database | ||
| Type: String | ||
| Default: db1 | ||
| Password: | ||
| Description: Database Password | ||
| Type: String | ||
| NoEcho: True | ||
| MinLength: 1 | ||
| MaxLength: 41 | ||
| AllowedPattern: ^[a-zA-Z0-9]*$ | ||
| LatestAmiId: | ||
| Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id> | ||
| Default: /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 | ||
|
|
||
| Resources: | ||
| DataScienceBucket: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| # not encrypted | ||
| Type: AWS::S3::Bucket | ||
| DeletionPolicy: Delete | ||
| Properties: | ||
| BucketName: !Sub "${AWS::AccountId}-${CompanyName}-${Environment}-data-science" | ||
| AccessControl: PublicRead | ||
| Tags: | ||
| - Key: Name | ||
| Value: !Sub "${AWS::AccountId}-${CompanyName}-${Environment}-data-science" | ||
| BucketEncryption: | ||
| ServerSideEncryptionConfiguration: | ||
| - ServerSideEncryptionByDefault: | ||
| SSEAlgorithm: AES256 | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resource: AWS::S3::Bucket.DataScienceBucket | ID:
BC_AWS_S3_21Description
The IgnorePublicAcls setting causes S3 to ignore all public ACLs on a bucket and any objects that it contains. Enabling this setting does not affect the persistence of any existing ACLs and does not prevent new public ACLs from being set.This setting will block public access granted by ACLs while still allowing PUT Object calls that include a public ACL.