SlideShare a Scribd company logo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Setting up your first environment and
adding automation
Cobus Bernard
AWS SENIORTECHNICAL EVANGELIST
@cobusbernard
cobusbernard
cobusbernard
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• VPC Overview
• EC2 Overview
• Multi-account setup
• Automate!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introduction
• Benefits of multiple accounts
• Security – role switching
• Naming convention
• Infrastructure as Code – infrastructure parity
• Single credential set
• Isolation
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
~/.aws/credentials
[meetup-main]
aws_access_key_id = my_api_key
aws_secret_access_key = my_api_secret
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
~/.aws/config
[profile meetup-main]
region = eu-west-1
[profile meetup-dev]
role_arn = arn:aws:iam::123456789012:role/terraform
source_profile = webinar-main
[profile meetup-prod]
role_arn = arn:aws:iam::123456789013:role/terraform
source_profile = webinar-main
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using theroles
aws --profile meetup-main ec2 describe-vpcs
{
"Vpcs": [
{
"VpcId": "vpc-a1a3bdc7",
"InstanceTenancy": "default",
"CidrBlockAssociationSet": [
{
"AssociationId": "vpc-cidr-assoc-b28680d9",
"CidrBlock": "172.31.0.0/16",
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using theroles
aws --profile meetup-dev ec2 describe-vpcs
{
"Vpcs": [
{
"VpcId": "vpc-035c4565",
"InstanceTenancy": "default",
"CidrBlockAssociationSet": [
{
"AssociationId": "vpc-cidr-assoc-1c8e8877",
"CidrBlock": "172.31.0.0/16”,
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automation
• Use templates for IAM policies!
• Use AWS profiles to execute in each environment
• Use Infrastructure-as-Code (AWS Cloudformation, AWS CDK, Terraform)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
COBUS BERNARD
AWS SENIORTECHNICAL EVANGELIST
@cobusbernard
cobusbernard
cobusbernard

More Related Content

PPTX
2019-11-09 DevOpsNG - What I've learned from DevOps
PPTX
DevConf 2020: Resiliency and availability design patterns for the cloud
PPTX
DevConfZA 2020 : Automating your cloud: What are the building blocks
PPTX
AWS SSA Webinar 4 - Building out your multi-account infrastructure
PPTX
AWS SSA Webinar 7 - Getting Started on AWS
PDF
20190911 AWS Black Belt Online Seminar AWS Batch
PPTX
AWS Startup Garage - Building your MVP on AWS
PDF
e커머스 통합운영 자동화 사례 및 보안강화 방안 - 양수연 상무, 삼성SDS / 임선진 팀장, 삼성SDS :: AWS Summit Seou...
2019-11-09 DevOpsNG - What I've learned from DevOps
DevConf 2020: Resiliency and availability design patterns for the cloud
DevConfZA 2020 : Automating your cloud: What are the building blocks
AWS SSA Webinar 4 - Building out your multi-account infrastructure
AWS SSA Webinar 7 - Getting Started on AWS
20190911 AWS Black Belt Online Seminar AWS Batch
AWS Startup Garage - Building your MVP on AWS
e커머스 통합운영 자동화 사례 및 보안강화 방안 - 양수연 상무, 삼성SDS / 임선진 팀장, 삼성SDS :: AWS Summit Seou...

What's hot (15)

PDF
서버리스 기반 콘텐츠 추천 서비스 만들기 - 이상현, Vingle :: AWS Summit Seoul 2019
PDF
20191023 AWS Black Belt Online Seminar Amazon EMR
PDF
[AWS Container Service] Getting Started with Kubernetes on AWS
PDF
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
PDF
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
PDF
AWS 기반 지속 가능한 데이터 분석 플랫폼 구축하기 - 소성운, 지그재그 :: AWS Summit Seoul 2019
PDF
신입 개발자가 스타트업에서 AWS로 살아남는 이야기 - 조용진, 모두의 캠퍼스 :: AWS Summit Seoul 2019
PDF
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
PDF
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
PPTX
Secure and Fast microVM for Serverless Computing using Firecracker
PDF
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
PDF
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone
PPTX
AWS SSA Webinar 9 - Getting Started on AWS: Storage
PDF
20190306 AWS Black Belt Online Seminar Amazon EC2 スポットインスタンス
PDF
The Next Wave of Retailing, An AWS Perspective - Tom Litchford 월드와이드 리테일 사업 개...
서버리스 기반 콘텐츠 추천 서비스 만들기 - 이상현, Vingle :: AWS Summit Seoul 2019
20191023 AWS Black Belt Online Seminar Amazon EMR
[AWS Container Service] Getting Started with Kubernetes on AWS
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
AWS 기반 지속 가능한 데이터 분석 플랫폼 구축하기 - 소성운, 지그재그 :: AWS Summit Seoul 2019
신입 개발자가 스타트업에서 AWS로 살아남는 이야기 - 조용진, 모두의 캠퍼스 :: AWS Summit Seoul 2019
20190731 Black Belt Online Seminar Amazon ECS Deep Dive
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
Secure and Fast microVM for Serverless Computing using Firecracker
Orchestrating containers on AWS | AWS Summit Tel Aviv 2019
20191105 AWS Black Belt Online Seminar Amazon Route 53 Hosted Zone
AWS SSA Webinar 9 - Getting Started on AWS: Storage
20190306 AWS Black Belt Online Seminar Amazon EC2 スポットインスタンス
The Next Wave of Retailing, An AWS Perspective - Tom Litchford 월드와이드 리테일 사업 개...
Ad

Similar to 2019-11-05 AWS Pretoria Meetup - Setting up your first environment and adding automation (20)

PDF
AWS System Administration Best Practices for Sysadmins in the Amazon Cloud 1s...
PPTX
Aws principle services: IAM,VPC, EC2, Cloudwatch
PPTX
Modernizing your AWS Deployment
PDF
20190223 JAWSDAYS 2019 AWS の Management Tools を使ったハイブリッドアーキテクチャ
PPTX
Modernizing your AWS Deployment - January 2017
PDF
AWS System Administration Best Practices for Sysadmins in the Amazon Cloud 1s...
PDF
AWS Certified Solutions Architect Associate Notes.pdf
PDF
Cloud patterns applied
PPTX
Introduction to DevOps on AWS
PPTX
Red Team vs. Blue Team on AWS ~ re:Invent 2018
PDF
Amazan Ec2
PPTX
AWS AWSome Day 2018 - Technical Track
PDF
Amazon EC2 notes.pdf
PPTX
AWS Fundamentals @Back2School by CloudZone
PDF
AWS Certified Solutions Architect Associate Exam Guide 1st Edition 2024_KIRAN...
PDF
Automating Security in Cloud Workloads with DevSecOps
PDF
Infrastructure as Code with Terraform
PDF
AWS BaseCamp: AWS Architecture Fundamentals
PDF
AWS Systems manager 2019
PPTX
best aws training in bangalore
AWS System Administration Best Practices for Sysadmins in the Amazon Cloud 1s...
Aws principle services: IAM,VPC, EC2, Cloudwatch
Modernizing your AWS Deployment
20190223 JAWSDAYS 2019 AWS の Management Tools を使ったハイブリッドアーキテクチャ
Modernizing your AWS Deployment - January 2017
AWS System Administration Best Practices for Sysadmins in the Amazon Cloud 1s...
AWS Certified Solutions Architect Associate Notes.pdf
Cloud patterns applied
Introduction to DevOps on AWS
Red Team vs. Blue Team on AWS ~ re:Invent 2018
Amazan Ec2
AWS AWSome Day 2018 - Technical Track
Amazon EC2 notes.pdf
AWS Fundamentals @Back2School by CloudZone
AWS Certified Solutions Architect Associate Exam Guide 1st Edition 2024_KIRAN...
Automating Security in Cloud Workloads with DevSecOps
Infrastructure as Code with Terraform
AWS BaseCamp: AWS Architecture Fundamentals
AWS Systems manager 2019
best aws training in bangalore
Ad

More from Cobus Bernard (20)

PPTX
London Microservices Meetup: Lessons learnt adopting microservices
PPTX
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
PPTX
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
PPTX
AWS SSA Webinar 32 - Getting Started with databases on AWS: Choosing the righ...
PPTX
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
PPTX
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
PPTX
AWS Webinar 24 - Getting Started with AWS - Understanding DR
PPTX
AWS Webinar 23 - Getting Started with AWS - Understanding total cost of owner...
PPTX
AWS SSA Webinar 21 - Getting Started with Data lakes on AWS
PDF
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
PPTX
AWS SSA Webinar 19 - Getting Started with Multi-Region Architecture: Services
PPTX
AWS SSA Webinar 18 - Getting Started with Multi-Region Architecture: Data
PPTX
AWS EMEA Online Summit - Live coding with containers
PPTX
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
PPTX
AWS SSA Webinar 17 - Getting Started on AWS with Amazon RDS
PPTX
AWS SSA Webinar 16 - Getting Started on AWS with Amazon EC2
PPTX
AWS SSA Webinar 15 - Getting started on AWS with Containers: Amazon EKS
PPTX
AWS SSA Webinar 13 - Getting started on AWS with Containers: Amazon ECS
PPTX
AWS SSA Webinar 11 - Getting started on AWS: Security
PPTX
AWS SSA Webinar 12 - Getting started on AWS with Containers
London Microservices Meetup: Lessons learnt adopting microservices
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
AWS SSA Webinar 32 - Getting Started with databases on AWS: Choosing the righ...
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
AWS Webinar 24 - Getting Started with AWS - Understanding DR
AWS Webinar 23 - Getting Started with AWS - Understanding total cost of owner...
AWS SSA Webinar 21 - Getting Started with Data lakes on AWS
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
AWS SSA Webinar 19 - Getting Started with Multi-Region Architecture: Services
AWS SSA Webinar 18 - Getting Started with Multi-Region Architecture: Data
AWS EMEA Online Summit - Live coding with containers
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS SSA Webinar 17 - Getting Started on AWS with Amazon RDS
AWS SSA Webinar 16 - Getting Started on AWS with Amazon EC2
AWS SSA Webinar 15 - Getting started on AWS with Containers: Amazon EKS
AWS SSA Webinar 13 - Getting started on AWS with Containers: Amazon ECS
AWS SSA Webinar 11 - Getting started on AWS: Security
AWS SSA Webinar 12 - Getting started on AWS with Containers

Recently uploaded (20)

DOCX
Unit-3 cyber security network security of internet system
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PPTX
artificial intelligence overview of it and more
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
E -tech empowerment technologies PowerPoint
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
Introduction to the IoT system, how the IoT system works
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Unit-3 cyber security network security of internet system
The Internet -By the Numbers, Sri Lanka Edition
Power Point - Lesson 3_2.pptx grad school presentation
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
artificial intelligence overview of it and more
Decoding a Decade: 10 Years of Applied CTI Discipline
Cloud-Scale Log Monitoring _ Datadog.pdf
RPKI Status Update, presented by Makito Lay at IDNOG 10
Job_Card_System_Styled_lorem_ipsum_.pptx
E -tech empowerment technologies PowerPoint
Paper PDF World Game (s) Great Redesign.pdf
Introduction to the IoT system, how the IoT system works
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
522797556-Unit-2-Temperature-measurement-1-1.pptx
PptxGenJS_Demo_Chart_20250317130215833.pptx
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx

2019-11-05 AWS Pretoria Meetup - Setting up your first environment and adding automation

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Setting up your first environment and adding automation Cobus Bernard AWS SENIORTECHNICAL EVANGELIST @cobusbernard cobusbernard cobusbernard
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • VPC Overview • EC2 Overview • Multi-account setup • Automate!
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Introduction • Benefits of multiple accounts • Security – role switching • Naming convention • Infrastructure as Code – infrastructure parity • Single credential set • Isolation
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ~/.aws/credentials [meetup-main] aws_access_key_id = my_api_key aws_secret_access_key = my_api_secret
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ~/.aws/config [profile meetup-main] region = eu-west-1 [profile meetup-dev] role_arn = arn:aws:iam::123456789012:role/terraform source_profile = webinar-main [profile meetup-prod] role_arn = arn:aws:iam::123456789013:role/terraform source_profile = webinar-main
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using theroles aws --profile meetup-main ec2 describe-vpcs { "Vpcs": [ { "VpcId": "vpc-a1a3bdc7", "InstanceTenancy": "default", "CidrBlockAssociationSet": [ { "AssociationId": "vpc-cidr-assoc-b28680d9", "CidrBlock": "172.31.0.0/16",
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using theroles aws --profile meetup-dev ec2 describe-vpcs { "Vpcs": [ { "VpcId": "vpc-035c4565", "InstanceTenancy": "default", "CidrBlockAssociationSet": [ { "AssociationId": "vpc-cidr-assoc-1c8e8877", "CidrBlock": "172.31.0.0/16”,
  • 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automation • Use templates for IAM policies! • Use AWS profiles to execute in each environment • Use Infrastructure-as-Code (AWS Cloudformation, AWS CDK, Terraform)
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 35. Thank you! © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. COBUS BERNARD AWS SENIORTECHNICAL EVANGELIST @cobusbernard cobusbernard cobusbernard