-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_sns_topic_attributes.fp
43 lines (35 loc) · 1.08 KB
/
set_sns_topic_attributes.fp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
pipeline "set_sns_topic_attributes" {
title = "Set SNS Topic Attributes"
description = "Sets attributes of an Amazon SNS topic."
param "region" {
type = string
description = local.region_param_description
}
param "cred" {
type = string
description = local.cred_param_description
default = "default"
}
param "topic_arn" {
type = string
description = "The Amazon Resource Name (ARN) of the Amazon SNS topic."
}
param "attribute_name" {
type = string
description = "The name of the attribute to set."
}
param "attribute_value" {
type = string
description = "The value to set for the specified attribute."
}
step "container" "set_sns_topic_attributes" {
image = "public.ecr.aws/aws-cli/aws-cli"
cmd = concat(
["sns", "set-topic-attributes"],
["--topic-arn", param.topic_arn],
["--attribute-name", param.attribute_name],
["--attribute-value", param.attribute_value],
)
env = merge(credential.aws[param.cred].env, { AWS_REGION = param.region })
}
}