Created
February 19, 2025 15:21
-
-
Save rssnyder/7e1605f218e8da8c5d4f58ee5ab0810d to your computer and use it in GitHub Desktop.
Nonsense AWS Terraform
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 5.0" | |
} | |
} | |
} | |
provider "aws" { | |
region = "us-west-2" | |
} | |
data "aws_caller_identity" "current" {} | |
output "account_id" { | |
value = data.aws_caller_identity.current.account_id | |
} | |
output "caller_arn" { | |
value = data.aws_caller_identity.current.arn | |
} | |
output "caller_user" { | |
value = data.aws_caller_identity.current.user_id | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment