In this part you'll let the pipeline log in to AWS with its ID token. The call you'll cover: call 5, job → AWS STS: the job trades the ID token for AWS credentials. What it adds: AWS is set up once to trust GitHub's tokens for your repository's main branch. No AWS secret is stored in GitHub: each run gets credentials …
Read MoreIn this part you'll let the pipeline deploy to an EKS cluster. The call you'll cover: call 6, job → EKS: the job deploys the image with the AWS credentials from Part 4. What it shows: Two worlds check the job, so it is refused twice before it gets in: IAM decides what the role may do in AWS: read the cluster's address; …
Read MoreTerraform turns code that describes cloud resources into the resources themselves. Terraform is a program on our workstation, run as a command in the terminal. The code, main.tf, says what we want: here one EC2 instance, EC2-B. The AWS provider program, downloaded from the Terraform Registry, turns Terraform's plan …
Read MoreData sources allow Terraform to use information defined outside of Terraform, defined by another separate Terraform configuration, or modified by functions. Data sources are like resources, but they don't create anything, just get some data you can refer to. A data source is accessed via a special kind of resource …
Read MoreTerraform Module Basics Terraform Modules are containers for multiple resources that are used together. A module consists of a collection of .tf and/or .tf.json files kept together in a directory. Modules are the main way to package and reuse resource configurations with Terraform. Root and Child Modules Every …
Read MoreTerraform offer output values make information about your infrastructure available on the command line, and can expose information for other Terraform configurations to use. About Output Values A child module can use outputs to expose a subset of its resource attributes to a parent module. A root module can use outputs …
Read MoreTerraform offers defining local values About Local Values A local value assigns a name to an expression, so you can use the name multiple times within a module instead of repeating the expression. If you're familiar with traditional programming languages, it can be useful to compare Terraform modules to function …
Read MoreAbout Input Variables Terraform offers input variables they are called "variables", but in fact these are parameters delivered to the current terraform module Variables are declared in a variable section, and they are parsed before other tf sections. Variables cannot reference other variables Variables allow default …
Read MoreAbout Terraform Resources Resources are the main thing we want to create with terraform, these are the components that make our infrastructure. Terraform intent is to create the resource idempotently, so that running apply more that once will not create multiple resources. body of resource contains configuration of …
Read MoreInteractive views Terraform: Code, Cloud and State Terraform Basics Terraform Introduction Terraform Workflow Terraform init and Providers Terraform Configuration Terraform Resources input variables locals outputs data sources terraform modules
Read More