Skip to content

Instantly share code, notes, and snippets.

@rssnyder
Created February 19, 2025 15:21
Show Gist options
  • Save rssnyder/7e1605f218e8da8c5d4f58ee5ab0810d to your computer and use it in GitHub Desktop.
Save rssnyder/7e1605f218e8da8c5d4f58ee5ab0810d to your computer and use it in GitHub Desktop.
Nonsense AWS Terraform
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