File tree Expand file tree Collapse file tree
terraform-backend-remote-state
terraform-provisioner-file
terraform-provisioner-local
terraform-provisiorner-remote Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- # shared_credentials_files = ["/home/rahul/.aws/credentials"]
4- access_key = " "
5- secret_key = " "
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
64}
75
86resource "aws_iam_role" "lambda_role" {
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- access_key = " "
4- secret_key = " "
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
54}
65
76resource "aws_instance" "ec2_example" {
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " ~> 1.3.6 "
2+ required_version = " ~> 1.1.9 "
33}
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- access_key = " "
4- secret_key = " "
5-
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
64}
75
86resource "aws_instance" "ec2_example" {
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- access_key = " "
4- secret_key = " "
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
54}
65
76resource "aws_ecr_repository" "docker_ecr_repo" {
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- access_key = " "
4- secret_key = " "
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
54}
65
76resource "aws_iam_user" "lb" {
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- access_key = " "
4- secret_key = " "
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
54}
65
76terraform {
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- access_key = " "
4- secret_key = " "
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
54}
65
76locals {
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = "eu-central-1"
3- access_key = ""
4- secret_key = ""
5-
2+ region = "eu-central-1"
3+ shared_credentials_files = [ "/Users/rahulwagh/.aws/credentials"]
64}
75
86resource "aws_instance" "ec2_example" {
@@ -74,10 +72,8 @@ resource "aws_key_pair" "deployer" {
7472---- dynamic block
7573
7674provider "aws" {
77- region = "eu-central-1"
78- access_key = ""
79- secret_key = ""
80-
75+ region = "eu-central-1"
76+ shared_credentials_files = [ "/Users/rahulwagh/.aws/credentials"]
8177}
8278
8379locals {
Original file line number Diff line number Diff line change 11provider "aws" {
2- region = " eu-central-1"
3- access_key = " "
4- secret_key = " "
2+ region = " eu-central-1"
3+ shared_credentials_files = [" /Users/rahulwagh/.aws/credentials" ]
54}
65
76locals {
You can’t perform that action at this time.
0 commit comments