SlideShare a Scribd company logo
Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
AWS DOs and DON’Ts
Casey Lee, Chief Architect
6/12/2018
2 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
Foundation Infrastructure Automation
3 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
Foundation Infrastructure Automation
4 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T overload accounts
• Complex access administration
• Larger blast radius
• Tricky cost allocation
https://aws.amazon.com/blogs/apn/migrating-applications-to-saas-a-minimally-invasive-approach/
5 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use Organizations API
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Deny",
"Action": [
"cloudtrail:AddTags",
"cloudtrail:CreateTrail",
"cloudtrail:DeleteTrail",
"cloudtrail:RemoveTags",
"cloudtrail:StartLogging",
"cloudtrail:StopLogging",
"cloudtrail:UpdateTrail"
],
"Resource": "*"
}]
}
6 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use a separate toolchain account
https://aws.amazon.com/answers/account-management/aws-multi-account-security-strategy/
7 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T create IAM users
8 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use federation
https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_identity-management.html
9 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO enable CLI access
https://aws.amazon.com/blogs/security/how-to-implement-a-general-solution-for-federated-apicli-access-using-saml-2-0/
10 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO enable CloudTrail
https://aws.amazon.com/answers/account-management/aws-multi-account-security-strategy/
11 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO enable VPC flow logs
https://aws.amazon.com/blogs/aws/vpc-flow-logs-log-and-view-network-traffic-flows/
12 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO enable GuardDuty
Foundation Infrastructure Automation
14 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T use public subnets
http://jayendrapatil.com/aws-vpc-nat/
15 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO consider a forward proxy
https://aws.amazon.com/answers/networking/controlling-vpc-egress-traffic/
16 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO consider a egress transit VPC
https://aws.amazon.com/answers/networking/controlling-vpc-egress-traffic/
17 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use VPC endpoints
https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpce-gateway.html
18 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO encrypt at rest
PolicyDocument:
Version: '2012-10-17'
Statement:
- Sid: RequireEncryption
Effect: Deny
Principal: '*'
Action: s3:PutObject
Resource: arn:aws:s3:::my-bucket-name/*
Condition:
StringNotEquals:
s3:x-amz-server-side-encryption: aws:kms
19 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO encrypt in transit
20 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T launch instances without ASG
https://www.slideshare.net/AmazonWebServices/set-it-and-forget-it-auto-scaling-target-tracking-policies-aws-online-tech-talks
21 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use target tracking policies
https://www.slideshare.net/AmazonWebServices/set-it-and-forget-it-auto-scaling-
target-tracking-policies-aws-online-tech-talks
22 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use SSM parameter store
https://www.slideshare.net/AlexMattson/secrets-management-with-ec2-systems-manager-parameter-store
Foundation Infrastructure Automation
24 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T click the button
25 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T reinvent automation tools
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-whatis-howdoesitwork.html
26 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use policies in CloudFormatoin
Resource level policiesStack level policies
27 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO use changesets
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-whatis-howdoesitwork.html
28 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T overload stacks
29 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DON’T go 100% bake or boot for AMI
https://aws.amazon.com/answers/configuratio
n-management/aws-ami-design/
30 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO prefer containers over instances
https://platform9.com/blog/kubernetes-vs-ecs/
31 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO governance via Service Catalog
https://www.slideshare.net/AmazonWebServices/aws-service-catalog
32 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO assess security in pipelines
https://stelligent.com/2016/04/05/continuous-security/
33 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO automated compliance
- name: s3-event-global-access
mode:
type: cloudtrail
events:
- source: s3.amazonaws.com
ids:
requestParameters.bucketName
event: PutBucketAcl
runtime: python3.6
resource: s3
filters:
- type: global-grants
actions:
- delete-global-grants
- name: create-bucket-autotag
mode:
type: cloudtrail
events:
- source: s3.amazonaws.com
ids:
requestParameters.bucketName
event: CreateBucket
runtime: python3.6
resource: s3
filters:
- tag:Owner: absent
actions:
- type: auto-tag-user
tag: Owner
Disable all global-grants Auto tag with Owner
Cloud Custodian
Foundation Infrastructure Automation
35 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved.
DO make it your own
https://www.lifegate.com/people/lifestyle/kintsugi
Thank you
Questions?
stelligent.com

More Related Content

PDF
Mitigate Security Threats with SIEM
PDF
Ready for hybrid cloud ? keep an eagle eye on configuration data - OW2con'19,...
 
PDF
Charla principal
PPTX
A Practical Guide to Migrating Legacy Applications
PDF
AWS-S3-infographic-final
PPTX
Ite express labs
PPTX
Building Bulletproof Infrastructure on AWS
PPTX
Blue Chip Tek Connect and Protect Presentation #3
Mitigate Security Threats with SIEM
Ready for hybrid cloud ? keep an eagle eye on configuration data - OW2con'19,...
 
Charla principal
A Practical Guide to Migrating Legacy Applications
AWS-S3-infographic-final
Ite express labs
Building Bulletproof Infrastructure on AWS
Blue Chip Tek Connect and Protect Presentation #3

Similar to AWS DOs and DONTs (20)

PPTX
Deep dive - AWS security by design
PDF
Security in the cloud
PPTX
Private Equity Value Creation Carve Outs, Divestitures and mergers
PDF
Dos and don'ts in AWS
PDF
Security and Compliance Better on AWS_John Hildebrandt
PDF
Forge - DevCon 2016: Developing & Deploying Secure, Scalable Applications on ...
PDF
Security Best Practices_John Hildebrandt
PDF
Datensicherheit mit AWS - AWS Security Web Day
PPTX
Underrated AWS Security Controls ~ AWS Atlanta Summit 2022
PPTX
Adopting AWS in your organization - ITPalooza 2015
PPTX
The New Normal Getting Started with AWS
PDF
AWS STARTUP DAY 2018 I Securing Your Customer Data From Day One
PDF
Being Well Architected in the Cloud
PDF
AWS Webinar CZSK 02 Bezpecnost v AWS cloudu
PDF
Security Best Practices
PDF
Security Best Practices: AWS AWSome Day Management Track
PDF
Migrate and Govern Applications on Cloud Infrastructure
PDF
Automating Security in Cloud Workloads with DevSecOps
PPTX
Hack proof your aws cloud cloudcheckr_040416
PPTX
Cloudifying your Security Operations on AWS
Deep dive - AWS security by design
Security in the cloud
Private Equity Value Creation Carve Outs, Divestitures and mergers
Dos and don'ts in AWS
Security and Compliance Better on AWS_John Hildebrandt
Forge - DevCon 2016: Developing & Deploying Secure, Scalable Applications on ...
Security Best Practices_John Hildebrandt
Datensicherheit mit AWS - AWS Security Web Day
Underrated AWS Security Controls ~ AWS Atlanta Summit 2022
Adopting AWS in your organization - ITPalooza 2015
The New Normal Getting Started with AWS
AWS STARTUP DAY 2018 I Securing Your Customer Data From Day One
Being Well Architected in the Cloud
AWS Webinar CZSK 02 Bezpecnost v AWS cloudu
Security Best Practices
Security Best Practices: AWS AWSome Day Management Track
Migrate and Govern Applications on Cloud Infrastructure
Automating Security in Cloud Workloads with DevSecOps
Hack proof your aws cloud cloudcheckr_040416
Cloudifying your Security Operations on AWS
Ad

More from Casey Lee (11)

PPTX
2022 SF Summit - Improving Developer Experience with CDK
PDF
AWS Summit DC 2021: Improve the developer experience with AWS CDK
PPTX
The Last Bottleneck of Continuous Delivery
PPTX
Using AWS to Achieve Both Autonomy and Governance at 3M
PPTX
AWS re:Invent 2018
PDF
Continuous Delivery on AWS with Zero Downtime
PPTX
Container based CI/CD on GitHub Actions
PPTX
WORKSHOP: Microservices as Containers on AWS
PPTX
Microservices as Containers on AWS . . . for Fun and Profit
PDF
Serverless Delivery
PPTX
Top10 Characteristics of Awesome Apps
2022 SF Summit - Improving Developer Experience with CDK
AWS Summit DC 2021: Improve the developer experience with AWS CDK
The Last Bottleneck of Continuous Delivery
Using AWS to Achieve Both Autonomy and Governance at 3M
AWS re:Invent 2018
Continuous Delivery on AWS with Zero Downtime
Container based CI/CD on GitHub Actions
WORKSHOP: Microservices as Containers on AWS
Microservices as Containers on AWS . . . for Fun and Profit
Serverless Delivery
Top10 Characteristics of Awesome Apps
Ad

Recently uploaded (20)

PDF
STL Containers in C++ : Sequence Container : Vector
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Complete Guide to Website Development in Malaysia for SMEs
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PPTX
GSA Content Generator Crack (2025 Latest)
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PDF
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
 
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PDF
Cost to Outsource Software Development in 2025
PDF
Time Tracking Features That Teams and Organizations Actually Need
PDF
Website Design Services for Small Businesses.pdf
STL Containers in C++ : Sequence Container : Vector
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Complete Guide to Website Development in Malaysia for SMEs
Advanced SystemCare Ultimate Crack + Portable (2025)
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
GSA Content Generator Crack (2025 Latest)
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Top 10 Software Development Trends to Watch in 2025 🚀.pdf
 
Designing Intelligence for the Shop Floor.pdf
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Why Generative AI is the Future of Content, Code & Creativity?
Digital Systems & Binary Numbers (comprehensive )
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Cost to Outsource Software Development in 2025
Time Tracking Features That Teams and Organizations Actually Need
Website Design Services for Small Businesses.pdf

AWS DOs and DONTs

  • 1. Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. AWS DOs and DON’Ts Casey Lee, Chief Architect 6/12/2018
  • 2. 2 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. Foundation Infrastructure Automation
  • 3. 3 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. Foundation Infrastructure Automation
  • 4. 4 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T overload accounts • Complex access administration • Larger blast radius • Tricky cost allocation https://aws.amazon.com/blogs/apn/migrating-applications-to-saas-a-minimally-invasive-approach/
  • 5. 5 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use Organizations API https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html { "Version": "2012-10-17", "Statement": [{ "Effect": "Deny", "Action": [ "cloudtrail:AddTags", "cloudtrail:CreateTrail", "cloudtrail:DeleteTrail", "cloudtrail:RemoveTags", "cloudtrail:StartLogging", "cloudtrail:StopLogging", "cloudtrail:UpdateTrail" ], "Resource": "*" }] }
  • 6. 6 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use a separate toolchain account https://aws.amazon.com/answers/account-management/aws-multi-account-security-strategy/
  • 7. 7 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T create IAM users
  • 8. 8 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use federation https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_identity-management.html
  • 9. 9 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO enable CLI access https://aws.amazon.com/blogs/security/how-to-implement-a-general-solution-for-federated-apicli-access-using-saml-2-0/
  • 10. 10 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO enable CloudTrail https://aws.amazon.com/answers/account-management/aws-multi-account-security-strategy/
  • 11. 11 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO enable VPC flow logs https://aws.amazon.com/blogs/aws/vpc-flow-logs-log-and-view-network-traffic-flows/
  • 12. 12 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO enable GuardDuty
  • 14. 14 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T use public subnets http://jayendrapatil.com/aws-vpc-nat/
  • 15. 15 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO consider a forward proxy https://aws.amazon.com/answers/networking/controlling-vpc-egress-traffic/
  • 16. 16 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO consider a egress transit VPC https://aws.amazon.com/answers/networking/controlling-vpc-egress-traffic/
  • 17. 17 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use VPC endpoints https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpce-gateway.html
  • 18. 18 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO encrypt at rest PolicyDocument: Version: '2012-10-17' Statement: - Sid: RequireEncryption Effect: Deny Principal: '*' Action: s3:PutObject Resource: arn:aws:s3:::my-bucket-name/* Condition: StringNotEquals: s3:x-amz-server-side-encryption: aws:kms
  • 19. 19 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO encrypt in transit
  • 20. 20 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T launch instances without ASG https://www.slideshare.net/AmazonWebServices/set-it-and-forget-it-auto-scaling-target-tracking-policies-aws-online-tech-talks
  • 21. 21 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use target tracking policies https://www.slideshare.net/AmazonWebServices/set-it-and-forget-it-auto-scaling- target-tracking-policies-aws-online-tech-talks
  • 22. 22 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use SSM parameter store https://www.slideshare.net/AlexMattson/secrets-management-with-ec2-systems-manager-parameter-store
  • 24. 24 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T click the button
  • 25. 25 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T reinvent automation tools https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-whatis-howdoesitwork.html
  • 26. 26 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use policies in CloudFormatoin Resource level policiesStack level policies
  • 27. 27 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO use changesets https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-whatis-howdoesitwork.html
  • 28. 28 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T overload stacks
  • 29. 29 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DON’T go 100% bake or boot for AMI https://aws.amazon.com/answers/configuratio n-management/aws-ami-design/
  • 30. 30 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO prefer containers over instances https://platform9.com/blog/kubernetes-vs-ecs/
  • 31. 31 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO governance via Service Catalog https://www.slideshare.net/AmazonWebServices/aws-service-catalog
  • 32. 32 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO assess security in pipelines https://stelligent.com/2016/04/05/continuous-security/
  • 33. 33 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO automated compliance - name: s3-event-global-access mode: type: cloudtrail events: - source: s3.amazonaws.com ids: requestParameters.bucketName event: PutBucketAcl runtime: python3.6 resource: s3 filters: - type: global-grants actions: - delete-global-grants - name: create-bucket-autotag mode: type: cloudtrail events: - source: s3.amazonaws.com ids: requestParameters.bucketName event: CreateBucket runtime: python3.6 resource: s3 filters: - tag:Owner: absent actions: - type: auto-tag-user tag: Owner Disable all global-grants Auto tag with Owner Cloud Custodian
  • 35. 35 Š Copyright 2007-2018 Stelligent Systems, llc. All Rights Reserved. DO make it your own https://www.lifegate.com/people/lifestyle/kintsugi