Skip to content

Commit fc19181

Browse files
committed
fix: IAM policy integration
1 parent 86382f5 commit fc19181

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.chglog/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ style: github
22
template: CHANGELOG.tpl.md
33
info:
44
title: CHANGELOG
5-
repository_url: https://github.com/terraform-aws-modules/terraform-aws-step-function
5+
repository_url: https://github.com/terraform-aws-modules/terraform-aws-step-functions
66
options:
77
header:
88
pattern: "^(.*)$"

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This Terraform module is the part of [serverless.tf framework](https://github.co
1818

1919
```hcl
2020
module "step_function" {
21-
source = "terraform-aws-modules/step-function/aws"
21+
source = "terraform-aws-modules/step-functions/aws"
2222
2323
name = "my-step-function"
2424
definition = <<EOF
@@ -66,7 +66,7 @@ Example of `service_integrations` arguments:
6666

6767
```hcl
6868
module "step_function" {
69-
source = "terraform-aws-modules/step-function/aws"
69+
source = "terraform-aws-modules/step-functions/aws"
7070
7171
# ... omitted
7272
service_integrations = {
@@ -106,7 +106,7 @@ Sometimes you need to have a way to create resources conditionally, so the solut
106106

107107
```hcl
108108
module "step_function" {
109-
source = "terraform-aws-modules/step-function/aws"
109+
source = "terraform-aws-modules/step-functions/aws"
110110
111111
create = false # to disable all resources
112112
create_role = false # to control creation of the IAM role and policies required for Step Function
@@ -118,7 +118,7 @@ module "step_function" {
118118

119119
## Examples
120120

121-
* [Complete](https://github.com/terraform-aws-modules/terraform-aws-step-function/tree/master/examples/complete) - Create Step Function and required IAM resources in various combinations with all supported features.
121+
* [Complete](https://github.com/terraform-aws-modules/terraform-aws-step-functions/tree/master/examples/complete) - Create Step Function and required IAM resources in various combinations with all supported features.
122122

123123

124124
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ data "aws_iam_policy_document" "service" {
8080
}
8181

8282
resource "aws_iam_policy" "service" {
83-
for_each = local.create_role && var.attach_policy_statements ? var.service_integrations : tomap({})
83+
for_each = local.create_role && var.attach_policies_for_integrations ? var.service_integrations : tomap({})
8484

8585
name = "${local.role_name}-${each.key}"
8686
policy = data.aws_iam_policy_document.service[each.key].json
8787
}
8888

8989
resource "aws_iam_policy_attachment" "service" {
90-
for_each = local.create_role && var.attach_policy_statements ? var.service_integrations : tomap({})
90+
for_each = local.create_role && var.attach_policies_for_integrations ? var.service_integrations : tomap({})
9191

9292
name = "${local.role_name}-${each.key}"
9393
roles = [aws_iam_role.this[0].name]

0 commit comments

Comments
 (0)