Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 1.12 KB

aws_s3_bucket_policy.md

File metadata and controls

81 lines (60 loc) · 1.12 KB

aws_s3_bucket_policy

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

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

Variables

variable "bucket" {
  description = "(required)"
  type        = string
}

variable "policy" {
  description = "(required)"
  type        = string
}

top

Resource

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

Outputs

output "id" {
  description = "returns a string"
  value       = aws_s3_bucket_policy.this.id
}

output "this" {
  value = aws_s3_bucket_policy.this
}

top