Skip to content

πŸ‘·πŸ»β€β™‚οΈ Well-Architected πŸ— πŸ›

Notifications You must be signed in to change notification settings

mvillafuertem/aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AWS


AWS is a project with many proof of concept modules...


Initial Configuration

S3Backend

Note

if you change scala code, you need to rerun main

sbt vpc/runMain io.github.mvillafuertem.Main2
  1. Comment S3Backend resource which is inside Terraform.scala
//  private val _: S3Backend = S3Backend.Builder
//    .create(self)
//    .bucket(configuration.bucket)
//    .key("backend/terraform.tfstate")
//    .region("eu-west-2")
//    .dynamodbTable(configuration.dynamodbTable)
//    .encrypt(true)
//    .profile("gbgdev")
//    .build()
  1. Create backend stack
cd modules/vpc/src/main/resources/stacks/mvillafuertem-backend 

terraform apply

...
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
....
  1. Uncomment S3Backend resource which is inside Terraform.scala
terraform apply

β”‚ Error: Backend initialization required: please run "terraform init"
β”‚ 
β”‚ Reason: Backend type changed from "local" to "s3"
...
  1. Run terraform init again
terraform init -migrate-state

Initializing the backend...
Terraform detected that the backend type changed from "local" to "s3".

Do you want to copy existing state to the new backend?
...

Enter a value: yes
  1. Check everything is ok
terraform plan

No changes. Your infrastructure matches the configuration.

Using AWS profile

terraform init -var="profile=myprofile"

terraform init -backend-config="profile=myprofile"

AWS Technical Essentials

Lab 1: Introduction to AWS Identity and Access Management

Image

Lab 2: Creating a VPC and Launching a Web Application in an Amazon EC2 Instance

Image

Image

Lab 3 - Configure a Web Application to use an Amazon S3 Bucket and DynamoDB Table

Image

Lab 4: Configure High Availability for your Application

Image

About

πŸ‘·πŸ»β€β™‚οΈ Well-Architected πŸ— πŸ›

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages