Module: cloudformation-stack-set
Terraform module to provision Cloudformation Stack Set and Administrator IAM role.
Usage
This example creates a role with the name cp-prod-app
with permission to assume `Chamber with S3 bucket as parameter store,
and gives permission to the entities specified in
assume_role_arns` to assume the role.
module "default" {
source = "git::https://github.com/cloudposse/terraform-aws-cloudformation-stack-set.git?ref=init"
enabled = "true"
namespace = "cp"
stage = "prod"
name = "app"
template_url = "https://aws-quickstart.s3.amazonaws.com/quickstart-compliance-cis-benchmark/templates/main.template"
executor_role_name = "cis-executor"
parameters = {
NotificationEmailAddressForCloudWatchAlarms = "[email protected]"
ConfigureCloudtrail = "Yes"
ConfigureConfig = "Yes"
ProfileLevel = "Level 2"
QSS3BucketName = "aws-quickstart"
QSS3KeyPrefix = "quickstart-compliance-cis-benchmark/"
}
capabilities = ["CAPABILITY_IAM"]
}
Requirements
No requirements.
Providers
Name | Version |
---|---|
aws | n/a |
Modules
Name | Source | Version |
---|---|---|
admin_role | git::https://github.com/cloudposse/terraform-aws-iam-role.git | tags/0.4.0 |
label | git::https://github.com/cloudposse/terraform-null-label.git | tags/0.5.3 |
Resources
Name | Type |
---|---|
aws_cloudformation_stack_set.default | resource |
aws_iam_policy_document.admin | data source |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
attributes | Additional attributes (_e.g._ "1") | list(string) | [] | no |
capabilities | A list of capabilities. Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_AUTO_EXPAND | list(string) | [] | no |
delimiter | Delimiter between name , namespace , stage and attributes | string | "-" | no |
enabled | Set to false to prevent the module from creating any resources | string | "true" | no |
executor_role_name | Name of the IAM Role in all target accounts for Stack Set operations | string | "AWSCloudFormationStackSetExecutionRole" | no |
name | Name | string | "cis" | no |
namespace | Namespace (e.g. cp or cloudposse ) | string | n/a | yes |
parameters | Key-value map of input parameters for the Stack Set template. (_e.g._ map("BusinessUnit","ABC") | map(string) | {} | no |
stage | Stage (e.g. prod , dev , staging ) | string | n/a | yes |
tags | Additional tags (_e.g._ map("BusinessUnit","ABC") | map(string) | {} | no |
template_url | Amazon S3 bucket URL location of a file containing the CloudFormation template body. Maximum file size: 460,800 bytes | any | n/a | yes |
Outputs
Name | Description |
---|---|
administrator_role_arn | Amazon Resource Number (ARN) of the IAM Role in the administrator account |
executor_role_name | Name of the IAM Role in all target accounts for Stack Set operations |
name | Name of the Stack Set |