Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
In case you are automating AWS assets in Terraform, then it would be best to not hardcode issues as a lot as attainable.
Terraform makes it attainable to tug the account_id
from the native credentials.
Create a information.tf
file and place the next merchandise in it:
information "aws_caller_identity" "present" {}
Now the account_id might be accessible to you inside your commonplace code as follows:
information.aws_caller_identity.present.account_id
This may now be utilized in a module, or wherever you’ll want to reference the account id:
module "my_custom_module" {
tags = var.tags
vpcid = var.vpcid
subnetids = var.subnetid
account_id = information.aws_caller_identity.present.account_id
supply = "./modules/some_module"
}