Commit 64c0e3a6 authored by Zeke Hendrickson's avatar Zeke Hendrickson
Browse files

Add a specific profile for the sns callback

parent ab5783a0
......@@ -160,6 +160,7 @@ class CallbackModule(CallbackBase):
})
}
boto3.setup_default_session(profile_name='sns')
client = boto3.client('sns', region_name=self.sns_region)
if ':' in self.sns_topic:
arn = self.sns_topic
......
......@@ -4,3 +4,6 @@ credential_source = Ec2InstanceMetadata
role_arn = arn:aws:iam::{{ profile.value.account }}:role/{{ aws_resource_prefix }}_bastion
{% endfor %}
[profile sns]
credential_source = Ec2InstanceMetadata
role_arn = arn:aws:iam::{{ aws_layout[aws_status][aws_profile_sns].account }}:role/{{ aws_resource_prefix }}_SNS
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment