Skip to content

Commit 1f5df37

Browse files
committed
Merge branch 'main' into chore/ARC-890-toggle-features
2 parents 59a128d + 5f8b087 commit 1f5df37

File tree

8 files changed

+32
-85
lines changed

8 files changed

+32
-85
lines changed

.github/workflows/snyk.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ on: # yamllint disable-line rule:truthy
1212

1313
jobs:
1414
security:
15-
runs-on:
16-
- self-hosted
17-
- refarch
15+
runs-on: ubuntu-latest
1816
name: snyk
1917
steps:
2018
- name: checkout

.github/workflows/tag.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ on: # yamllint disable-line rule:truthy
99
jobs:
1010
## tag
1111
tag:
12-
runs-on:
13-
- self-hosted
14-
- refarch
12+
runs-on: ubuntu-latest
1513
steps:
1614
- uses: actions/checkout@v2
1715

.github/workflows/test.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ on: # yamllint disable-line rule:truthy
1212

1313
jobs:
1414
tflint:
15-
runs-on:
16-
- self-hosted
17-
- refarch
15+
runs-on: ubuntu-latest
1816
name: tflint
1917
steps:
2018
- uses: actions/checkout@master
@@ -32,24 +30,3 @@ jobs:
3230
- name: Run tflint
3331
run: tflint -f compact
3432

35-
checkov:
36-
runs-on: self-hosted
37-
name: checkov
38-
steps:
39-
- uses: actions/checkout@master
40-
41-
- name: Run Checkov action
42-
id: checkov
43-
uses: bridgecrewio/checkov-action@master
44-
with:
45-
directory: .
46-
quiet: true # optional: display only failed checks
47-
soft_fail: false # optional: do not return an error code if there are failed checks.
48-
framework: terraform
49-
# optional: run only on a specific infrastructure {cloudformation,terraform,kubernetes,all}
50-
output_format: github_failed_only
51-
# optional: the output format, one of: cli, json, junitxml, github_failed_only
52-
download_external_modules: false
53-
log_level: WARNING
54-
container_user: 1000
55-
# optional: Define what UID and / or what GID to run the container under to prevent permission issues

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.4
1+
1.2.6

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# terraform-aws-ref-arch-ecs
1+
# [terraform-aws-ref-arch-ecs](https://github.com/sourcefuse/terraform-aws-ref-arch-ecs)
22

3+
[![Known Vulnerabilities](https://github.com/sourcefuse/terraform-aws-ref-arch-ecs/actions/workflows/snyk.yaml/badge.svg)](https://github.com/sourcefuse/terraform-aws-ref-arch-ecs/actions/workflows/snyk.yaml)
34
## Overview
45

56
Terraform Module for AWS ECS by the SourceFuse ARC team.
@@ -86,9 +87,7 @@ module "ecs" {
8687
| Name | Type |
8788
|------|------|
8889
| [aws_cloudwatch_log_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |
89-
| [aws_iam_policy.secrets_manager_read_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
9090
| [aws_iam_policy_attachment.execution](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy_attachment) | resource |
91-
| [aws_iam_policy_attachment.secrets_manager_read](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy_attachment) | resource |
9291
| [aws_iam_role.execution](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
9392
| [aws_lb_listener.http](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener) | resource |
9493
| [aws_lb_listener.https](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener) | resource |

checkov-problem-matcher-softfail.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

iam.tf

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,3 @@ resource "aws_iam_policy_attachment" "execution" {
2828
policy_arn = each.value
2929
roles = [aws_iam_role.execution.name]
3030
}
31-
32-
################################################################################
33-
## secrets manager
34-
################################################################################
35-
resource "aws_iam_policy" "secrets_manager_read_policy" {
36-
name_prefix = "${local.cluster_name}-secrets-manager-ro-"
37-
38-
policy = jsonencode({
39-
Version = "2012-10-17",
40-
Statement = [
41-
{
42-
Effect = "Allow",
43-
Resource = "*"
44-
Action = [
45-
"secretsmanager:GetSecretValue"
46-
],
47-
}
48-
]
49-
})
50-
51-
tags = merge(var.tags, tomap({
52-
NamePrefix = "${local.cluster_name}-secrets-manager-ro-"
53-
}))
54-
}
55-
56-
resource "aws_iam_policy_attachment" "secrets_manager_read" {
57-
name = "${local.cluster_name}-secrets-manager-ro"
58-
roles = [aws_iam_role.execution.name]
59-
policy_arn = aws_iam_policy.secrets_manager_read_policy.arn
60-
}

locals.tf

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,34 @@ locals {
1717
description = "ALB ARN"
1818
type = "String"
1919
},
20+
{
21+
name = "/${var.namespace}/${var.environment}/alb/${module.alb.alb_name}/dns_zone_id"
22+
value = module.alb.alb_zone_id
23+
description = "ALB Zone ID"
24+
type = "String"
25+
},
26+
{
27+
name = "/${var.namespace}/${var.environment}/alb/${module.alb.alb_name}/health_check_fqdn"
28+
value = module.health_check.route_53_fqdn
29+
description = "ALB Health Check FQDN."
30+
type = "String"
31+
},
32+
33+
## acm
34+
{
35+
name = "/${var.namespace}/${var.environment}/alb/${module.alb.alb_name}/certificate_arn"
36+
value = try(module.acm.arn, "Not Assigned")
37+
description = "ACM Certificate ARN."
38+
type = "String"
39+
},
2040

2141
## ecs
42+
{
43+
name = "/${var.namespace}/${var.environment}/ecs/${module.ecs.cluster_name}/cluster_name"
44+
value = module.ecs.cluster_name
45+
description = "ECS Cluster Name"
46+
type = "String"
47+
},
2248
{
2349
name = "/${var.namespace}/${var.environment}/ecs/${module.ecs.cluster_name}/id"
2450
value = module.ecs.cluster_id

0 commit comments

Comments
 (0)