Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
60f12da6
Commit
60f12da6
authored
Oct 30, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need for custom policy on sns.
parent
78c6aa36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
terraform/sitespeed/sitespeed.tf
+0
-30
No files found.
terraform/sitespeed/sitespeed.tf
View file @
60f12da6
resource "aws_iam_policy" "topic_policy" {
name = "${var.environment}-${var.deployment}-${var.service}-sender"
path = "/"
description = "Sender policy"
policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"sns:Publish"
],
"Effect": "Allow",
"Resource": "${aws_sns_topic.edx-pipeline-provision.arn}"
},
{
"Action": [
"sns:Publish"
],
"Effect": "Allow",
"Resource": "${aws_sns_topic.edx-pipeline-sitespeed.arn}"
}
]
}
EOF
}
# Configure the AWS Provider
provider "aws" {
...
...
@@ -32,8 +6,6 @@ provider "aws" {
region = "us-east-1"
}
# pipeline-provision infrastructure
resource "aws_sqs_queue" "edx-pipeline-provision" {
name = "${var.queue_name_pipeline}"
...
...
@@ -45,7 +17,6 @@ resource "aws_sqs_queue" "edx-pipeline-provision" {
resource "aws_sns_topic" "edx-pipeline-provision" {
name = "edx-pipeline-provision-topic"
policy = "topic_policy"
}
resource "aws_sns_topic_subscription" "edx-pipeline-provision_sqs_target" {
...
...
@@ -67,7 +38,6 @@ resource "aws_sqs_queue" "edx-pipeline-sitespeed" {
resource "aws_sns_topic" "edx-pipeline-sitespeed" {
name = "edx-pipeline-sitespeed-topic"
policy = "topic_policy"
}
resource "aws_sns_topic_subscription" "edx-pipeline-sitespeed_sqs_target" {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment