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
{ | |
"Version": "2012-10-17", | |
"Statement": { | |
"Effect": "Allow", | |
"Principal": {"Service": "ec2.amazonaws.com"}, | |
"Action": "sts:AssumeRole" | |
} | |
} |
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
aws iam create-role --role-name aws-system-manager --assume-role-policy-document file://system-manager-role-policy.json --permissions-boundary "arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM" --tags "Key=name,Value=aws-system-manager" |
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
aws cloudfront list-distributions --query DistributionList.Items[*].[Id,DomainName,Origins.Items[0].Id] |
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
aws cloudfront create-invalidation --distribution-id EENNAX11SI81 --paths '/*' |
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
$ aws s3 cp dist/angular-demo s3://shubham-demo-bucket --recursive --exclude "*" --include "*.svg" --no-guess-mime-type --content-type "image/svg+xml" --cache-control public,max-age=86400 |
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
aws s3 cp dist/angular-demo s3://shubham-demo-bucket --recursive --exclude "*.svg" --cache-control public,max-age=86400 |
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
aws cloudfront create-distribution --distribution-config file://cf_config.json |
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
{ | |
"CallerReference": "cli-example", | |
"Aliases": { | |
"Quantity":0 | |
}, | |
"DefaultRootObject": "index.html", | |
"Origins": { | |
"Quantity": 1, | |
"Items": [ | |
{ |
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
$ aws cloudfront create-distribution --generate-cli-skeleton > cf_config.json |
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
$ aws s3api put-bucket-website --bucket shubham-demo-bucket --website-configuration file://website_configuration.txt |