-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed37a8c
commit 58088ae
Showing
13 changed files
with
241 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/mapping/aws/resource/datapipeline/aws_datapipeline_pipeline.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"datapipeline:CreatePipeline", | ||
"datapipeline:DeletePipeline" | ||
], | ||
"attributes": { | ||
"tags": [ | ||
"datapipeline:AddTags", | ||
"datapipeline:RemoveTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"datapipeline:DeletePipeline" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
src/mapping/aws/resource/datapipeline/aws_datapipeline_pipeline_definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"datapipeline:PutPipelineDefinition", | ||
"datapipeline:GetPipelineDefinition" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
62 changes: 37 additions & 25 deletions
62
src/mapping/aws/resource/elasticloadbalancing/aws_elb.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"elasticloadbalancing:CreateLoadBalancer", | ||
"elasticloadbalancing:CreateLoadBalancerListeners", | ||
"elasticloadbalancing:DescribeLoadBalancers", | ||
"elasticloadbalancing:DescribeLoadBalancerAttributes", | ||
"ec2:DescribeSecurityGroups", | ||
"elasticloadbalancing:DescribeTags", | ||
"elasticloadbalancing:DeleteLoadBalancer", | ||
"elasticloadbalancing:ModifyLoadBalancerAttributes", | ||
"elasticloadbalancing:AttachLoadBalancerToSubnets" | ||
], | ||
"attributes": { | ||
"tags": [ | ||
"elasticloadbalancing:AddTags", | ||
"elasticloadbalancing:RemoveTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"elasticloadbalancing:DeleteLoadBalancer" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
[ | ||
{ | ||
"apply": [ | ||
"elasticloadbalancing:CreateLoadBalancer", | ||
"elasticloadbalancing:CreateLoadBalancerListeners", | ||
"elasticloadbalancing:DescribeLoadBalancers", | ||
"elasticloadbalancing:DescribeLoadBalancerAttributes", | ||
"ec2:DescribeSecurityGroups", | ||
"ec2:CreateSecurityGroup", | ||
"elasticloadbalancing:DescribeTags", | ||
"elasticloadbalancing:DeleteLoadBalancer", | ||
"elasticloadbalancing:ModifyLoadBalancerAttributes", | ||
"elasticloadbalancing:AttachLoadBalancerToSubnets", | ||
"ec2:DescribeNetworkInterfaces", | ||
"ec2:DetachNetworkInterface", | ||
"ec2:DeleteNetworkInterface" | ||
], | ||
"attributes": { | ||
"availability_zones": [ | ||
"elasticloadbalancing:EnableAvailabilityZonesForLoadBalancer" | ||
], | ||
"security_groups": [ | ||
"elasticloadbalancing:SetSecurityGroups" | ||
], | ||
"tags": [ | ||
"elasticloadbalancing:AddTags", | ||
"elasticloadbalancing:RemoveTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"elasticloadbalancing:DeleteLoadBalancer", | ||
"ec2:DetachNetworkInterface", | ||
"ec2:DeleteNetworkInterface" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
64 changes: 38 additions & 26 deletions
64
src/mapping/aws/resource/elasticloadbalancing/aws_lb.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"elasticloadbalancing:CreateLoadBalancer", | ||
"elasticloadbalancing:DescribeLoadBalancers", | ||
"elasticloadbalancing:DescribeLoadBalancerAttributes", | ||
"elasticloadbalancing:DescribeTags", | ||
"elasticloadbalancing:DeleteLoadBalancer", | ||
"elasticloadbalancing:ModifyLoadBalancerAttributes" | ||
], | ||
"attributes": { | ||
"security_groups": [ | ||
"elasticloadbalancing:SetSecurityGroups" | ||
], | ||
"tags": [ | ||
"elasticloadbalancing:AddTags", | ||
"elasticloadbalancing:RemoveTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"elasticloadbalancing:DeleteLoadBalancer" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] | ||
[ | ||
{ | ||
"apply": [ | ||
"elasticloadbalancing:CreateLoadBalancer", | ||
"elasticloadbalancing:CreateLoadBalancerListeners", | ||
"elasticloadbalancing:DescribeLoadBalancers", | ||
"elasticloadbalancing:DescribeLoadBalancerAttributes", | ||
"ec2:DescribeSecurityGroups", | ||
"ec2:CreateSecurityGroup", | ||
"elasticloadbalancing:DescribeTags", | ||
"elasticloadbalancing:DeleteLoadBalancer", | ||
"elasticloadbalancing:ModifyLoadBalancerAttributes", | ||
"elasticloadbalancing:AttachLoadBalancerToSubnets", | ||
"ec2:DescribeNetworkInterfaces", | ||
"ec2:DetachNetworkInterface", | ||
"ec2:DeleteNetworkInterface" | ||
], | ||
"attributes": { | ||
"availability_zones": [ | ||
"elasticloadbalancing:EnableAvailabilityZonesForLoadBalancer" | ||
], | ||
"security_groups": [ | ||
"elasticloadbalancing:SetSecurityGroups" | ||
], | ||
"tags": [ | ||
"elasticloadbalancing:AddTags", | ||
"elasticloadbalancing:RemoveTags" | ||
] | ||
}, | ||
"destroy": [ | ||
"elasticloadbalancing:DeleteLoadBalancer", | ||
"ec2:DetachNetworkInterface", | ||
"ec2:DeleteNetworkInterface" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
src/mapping/aws/resource/elasticloadbalancing/aws_proxy_protocol_policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"apply": [ | ||
"elasticloadbalancing:CreateLoadBalancerPolicy", | ||
"elasticloadbalancing:SetLoadBalancerPoliciesForBackendServer", | ||
"elasticloadbalancing:DeleteLoadBalancerPolicy" | ||
], | ||
"attributes": { | ||
"tags": [] | ||
}, | ||
"destroy": [ | ||
"elasticloadbalancing:DeleteLoadBalancerPolicy" | ||
], | ||
"modify": [], | ||
"plan": [] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resource "aws_datapipeline_pipeline" "pike" { | ||
name = "tf-pipeline-default" | ||
description = "pike" | ||
tags = { | ||
pike = "permission" | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
terraform/aws/backup/aws_datapipeline_pipeline_definition.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
resource "aws_datapipeline_pipeline_definition" "pike" { | ||
pipeline_id = aws_datapipeline_pipeline.pike.id | ||
pipeline_object { | ||
id = "Default" | ||
name = "Default" | ||
field { | ||
key = "workerGroup" | ||
string_value = "workerGroup" | ||
} | ||
} | ||
pipeline_object { | ||
id = "Schedule" | ||
name = "Schedule" | ||
field { | ||
key = "startDateTime" | ||
string_value = "2012-12-12T00:00:00" | ||
} | ||
field { | ||
key = "type" | ||
string_value = "Schedule" | ||
} | ||
field { | ||
key = "period" | ||
string_value = "1 hour" | ||
} | ||
field { | ||
key = "endDateTime" | ||
string_value = "2012-12-21T18:00:00" | ||
} | ||
} | ||
pipeline_object { | ||
id = "SayHello" | ||
name = "SayHello" | ||
field { | ||
key = "type" | ||
string_value = "ShellCommandActivity" | ||
} | ||
field { | ||
key = "command" | ||
string_value = "echo hello" | ||
} | ||
field { | ||
key = "parent" | ||
string_value = "Default" | ||
} | ||
field { | ||
key = "schedule" | ||
string_value = "Schedule" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
resource "aws_elb" "lb" { | ||
name = "test-lb" | ||
|
||
availability_zones = ["us-east-1a"] | ||
|
||
listener { | ||
instance_port = 25 | ||
instance_protocol = "tcp" | ||
lb_port = 25 | ||
lb_protocol = "tcp" | ||
} | ||
|
||
listener { | ||
instance_port = 587 | ||
instance_protocol = "tcp" | ||
lb_port = 587 | ||
lb_protocol = "tcp" | ||
} | ||
} | ||
|
||
resource "aws_proxy_protocol_policy" "smtp" { | ||
load_balancer = aws_elb.lb.name | ||
instance_ports = ["25", "587"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
provider "aws" { | ||
region = "eu-west-2" | ||
region = "us-east-1" | ||
profile = "basic" | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters