A Terraform module to create an IAM role for S3 bucket replication.
module "s3-replication-role" {
source = "modernisation-platform-terraform-s3-bucket-replication-role"
buckets = [module.s3-bucket.bucket.arn]
replication_bucket = "bucket-name"
tags = local.tags
}
Name | Version |
---|---|
terraform | >= 1.0.1 |
aws | ~> 5.0 |
Name | Version |
---|---|
aws | ~> 5.0 |
No modules.
Name | Type |
---|---|
aws_iam_policy.default | resource |
aws_iam_role.default | resource |
aws_iam_role_policy_attachment.default | resource |
aws_iam_policy_document.default-policy | data source |
aws_iam_policy_document.s3-assume-role-policy | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
buckets | A list of bucket ARNs to allow access to | list(any) |
n/a | yes |
replication_bucket | Name of bucket used for replication - if not specified then * will be used in the policy | string |
"" |
no |
suffix_name | Suffix for role and policy names | string |
"" |
no |
tags | Tags to apply to resources, where applicable | map(any) |
{} |
no |
Name | Description |
---|---|
policy | Direct aws_iam_policy resource with all attributes |
role | Direct aws_iam_role resource with all attributes |
If you're looking to raise an issue with this module, please create a new issue in the Modernisation Platform repository.