Skip to content

Infostrux-Solutions/infostrux-cloud-hiring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infostrux Cloud Hiring

A repository meant to be used during hiring process for Cloud/Platform Engineers for Infostrux.

Getting Started

Lambda

A Python Lambda Function that downloads from an API and stores a file in S3.

In order to deploy this Lambda Function you will need to create a .zip file archive and place it in a folder under terraform/builds, this way Terraform will deploy Lambda with the correct Python files.

Terraform

Setup

Feel free to modify how the Terraform project does Authentication to AWS. Currently it's setup to use an assume role for both backend and provider authentication.

Using assume roles:

mkdir terraform/sandbox
cd sandbox
touch sandbox.tfbackend
touch sandbox.tfvars

Sample <env>.tfbackend

role_arn = "arn:aws:iam::<account_number>:role/<role_name>"
bucket="name_of_bucket_for_tf_state"

Sample <env>.tfvars

aws_assume_role = "arn:aws:iam::<account_number>:role/<role_name>"

Create Workspace:

terraform workspace new sandbox

Running Terraform Apply and Plan:

terraform init -backend-config="sandbox/sandbox.tfbackend"
terraform workspace select sandbox
terraform fmt .
terraform validate
terraform plan -var-file=sandbox/sandbox.tfvars
terraform apply -var-file=sandbox/sandbox.tfvars

Generate Terraform Docs

Use Terraform-Docs to generate and inject Terraform resource documentation to this README.

cd terraform
terraform-docs markdown table --output-file README.md --output-mode inject .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published