Skip to content

Commit 0171961

Browse files
committed
VED-270: Fix incorrect account in endpoint policies. Remove unused docker provider.
1 parent c9265ec commit 0171961

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

infra/endpoints.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ resource "aws_vpc_endpoint" "sqs_endpoint" {
5454
{
5555
Effect = "Allow"
5656
Principal = {
57-
AWS = "arn:aws:iam::${local.dspp_core_account_id}:root"
57+
AWS = "arn:aws:iam::${local.immunisation_account_id}:root"
5858
},
5959
Action = [
6060
"sqs:SendMessage",
@@ -84,7 +84,7 @@ resource "aws_vpc_endpoint" "s3_endpoint" {
8484
{
8585
Effect = "Allow"
8686
Principal = {
87-
AWS = "arn:aws:iam::${local.dspp_core_account_id}:root"
87+
AWS = "arn:aws:iam::${local.immunisation_account_id}:root"
8888
},
8989
Action = [
9090
"s3:GetObject",
@@ -117,7 +117,7 @@ resource "aws_vpc_endpoint" "kinesis_endpoint" {
117117
{
118118
Effect = "Allow",
119119
Principal = {
120-
AWS = "arn:aws:iam::${local.dspp_core_account_id}:root"
120+
AWS = "arn:aws:iam::${local.immunisation_account_id}:root"
121121
},
122122
Action = [
123123
"firehose:ListDeliveryStreams",
@@ -147,7 +147,7 @@ resource "aws_vpc_endpoint" "dynamodb" {
147147
{
148148
"Effect" : "Allow",
149149
"Principal" : {
150-
AWS = "arn:aws:iam::${local.dspp_core_account_id}:root"
150+
AWS = "arn:aws:iam::${local.immunisation_account_id}:root"
151151
},
152152
"Action" : "*",
153153
"Resource" : "*"
@@ -215,7 +215,7 @@ resource "aws_vpc_endpoint" "kinesis_stream_endpoint" {
215215
{
216216
Effect = "Allow",
217217
Principal = {
218-
AWS = "arn:aws:iam::${local.dspp_core_account_id}:root"
218+
AWS = "arn:aws:iam::${local.immunisation_account_id}:root"
219219
},
220220
Action = [
221221
"kinesis:ListShards",
@@ -254,7 +254,7 @@ resource "aws_vpc_endpoint" "kms_endpoint" {
254254
{
255255
Effect = "Allow",
256256
Principal = {
257-
AWS = "arn:aws:iam::${local.dspp_core_account_id}:root"
257+
AWS = "arn:aws:iam::${local.immunisation_account_id}:root"
258258
},
259259
Action = [
260260
"kms:Decrypt",

infra/main.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ terraform {
44
source = "hashicorp/aws"
55
version = "~> 5"
66
}
7-
# TODO - do we need docker?
8-
docker = {
9-
source = "kreuzwerker/docker"
10-
version = "3.0.2"
11-
}
127
}
138
backend "s3" {
149
region = "eu-west-2"

0 commit comments

Comments
 (0)