Skip to content

Commit

Permalink
Remove account-level tags (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Mar 25, 2024
1 parent 34a9a36 commit 3bc9ad1
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 22 deletions.
7 changes: 7 additions & 0 deletions .changeset/yellow-gifts-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'skuba': patch
---

template: Remove account-level tags from resources

This partially reverts [#1459](https://github.com/seek-oss/skuba/pull/1459) and [#1461](https://github.com/seek-oss/skuba/pull/1461) to avoid unnecessary duplication of account-level tags in our templates.
1 change: 0 additions & 1 deletion template/express-rest-api/.gantry/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ image: '{{values "prodAccountId"}}.dkr.ecr.<%- region %>.amazonaws.com/{{values
# datadogSecretId: arn:aws:secretsmanager:<%- region %>:<aws-account-id>:secret:<secret-name>

tags:
seek:env:prod: '{{values "isProduction"}}'
seek:source:sha: '{{.CommitSHA}}'
seek:source:url: 'https://github.com/SEEK-Jobs/<%- repoName %>'
# seek:system:name: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
2 changes: 0 additions & 2 deletions template/express-rest-api/.gantry/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ environment: dev
env:
SOME_ENVIRONMENT_VARIABLE: dev-value

isProduction: false

maxInstanceCount: 1
minInstanceCount: 1

Expand Down
2 changes: 0 additions & 2 deletions template/express-rest-api/.gantry/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ environment: prod
env:
SOME_ENVIRONMENT_VARIABLE: prod-value

isProduction: true

maxInstanceCount: 10
minInstanceCount: 3
1 change: 0 additions & 1 deletion template/koa-rest-api/.gantry/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ image: '{{values "prodAccountId"}}.dkr.ecr.<%- region %>.amazonaws.com/{{values
# datadogSecretId: arn:aws:secretsmanager:<%- region %>:<aws-account-id>:secret:<secret-name>

tags:
seek:env:prod: '{{values "isProduction"}}'
seek:source:sha: '{{.CommitSHA}}'
seek:source:url: 'https://github.com/SEEK-Jobs/<%- repoName %>'
# seek:system:name: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
3 changes: 1 addition & 2 deletions template/koa-rest-api/.gantry/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ environment: dev
env:
SOME_ENVIRONMENT_VARIABLE: dev-value

isProduction: false

maxInstanceCount: 1
minInstanceCount: 1

# Disable dashboard for cost savings
cloudwatchDashboardDisabled: true

openTelemetry:
datadogEnvironmentName: development
enabled: false
3 changes: 1 addition & 2 deletions template/koa-rest-api/.gantry/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ environment: prod
env:
SOME_ENVIRONMENT_VARIABLE: prod-value

isProduction: true

maxInstanceCount: 10
minInstanceCount: 3

openTelemetry:
datadogEnvironmentName: production
enabled: false
8 changes: 2 additions & 6 deletions template/koa-rest-api/gantry.apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ datadogSecretId: '{{values "datadogSecretId"}}'
{{end}}

openTelemetry:
enabled: {{.Values.openTelemetry.enabled | default false}}
{{if .Values.isProduction}}
datadogEnvironmentName: production
{{else}}
datadogEnvironmentName: development
{{end}}
datadogEnvironmentName: '{{values "openTelemetry.datadogEnvironmentName"}}'
enabled: {{values "openTelemetry.enabled"}}
{{if .Values.pagerDutyEndpoint}}
pagerDutyEndpoint: '{{values "pagerDutyEndpoint"}}'
{{end}}
Expand Down
6 changes: 0 additions & 6 deletions template/lambda-sqs-worker/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ params:
description: <%- description %>
dev:
deploymentBucket: 'TODO: deployment-bucket-name'
isProduction: false
concurrency: 2
prod:
deploymentBucket: 'TODO: deployment-bucket-name'
isProduction: true
concurrency: 20

custom:
Expand Down Expand Up @@ -83,14 +81,10 @@ provider:
Resource: !Ref DestinationTopic
stackTags:
seek:env:label: ${env:ENVIRONMENT}
seek:env:prod: ${param:isProduction}
# seek:owner:cost-centre: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
seek:owner:technical: '<%- teamName %>'
seek:source:sha: ${env:BUILDKITE_COMMIT, 'na'}
seek:source:url: 'https://github.com/SEEK-Jobs/<%- repoName %>'
seek:system:deployed-by: CFN
# seek:system:name: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'
# seek:system:org: 'TODO: https://rfc.skinfra.xyz/RFC019-AWS-Tagging-Standard.html#required-tags'

package:
patterns:
Expand Down

0 comments on commit 3bc9ad1

Please sign in to comment.