back
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
top
module "aws_s3_bucket_policy" {
source = "./modules/aws/r/aws_s3_bucket_policy"
# bucket - (required) is a type of string
bucket = null
# policy - (required) is a type of string
policy = null
}
top
variable "bucket" {
description = "(required)"
type = string
}
variable "policy" {
description = "(required)"
type = string
}
top
resource "aws_s3_bucket_policy" "this" {
# bucket - (required) is a type of string
bucket = var.bucket
# policy - (required) is a type of string
policy = var.policy
}
top
output "id" {
description = "returns a string"
value = aws_s3_bucket_policy.this.id
}
output "this" {
value = aws_s3_bucket_policy.this
}
top