File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ To run the tests:
107
107
| [ aws_caller_identity] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity ) |
108
108
| [ aws_cloudwatch_log_group] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group ) |
109
109
| [ aws_iam_policy_document] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document ) |
110
+ | [ aws_partition] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition ) |
110
111
| [ aws_region] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region ) |
111
112
| [ aws_sns_topic] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic ) |
112
113
| [ aws_sns_topic_subscription] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sns_topic_subscription ) |
Original file line number Diff line number Diff line change 1
1
data "aws_caller_identity" "current" {}
2
+ data "aws_partition" "current" {}
2
3
data "aws_region" "current" {}
3
4
4
5
resource "aws_sns_topic" "this" {
@@ -15,7 +16,7 @@ locals {
15
16
sns_topic_arn = element (
16
17
concat (
17
18
aws_sns_topic. this . * . arn ,
18
- [" arn:aws :sns:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :${ var . sns_topic_name } " ],
19
+ [" arn:${ data . aws_partition . current . id } :sns:${ data . aws_region . current . name } :${ data . aws_caller_identity . current . account_id } :${ var . sns_topic_name } " ],
19
20
[" " ]
20
21
),
21
22
0 ,
You can’t perform that action at this time.
0 commit comments