Skip to content

Commit

Permalink
feat: Add base AWS SSM Ops File along with additional properties (con…
Browse files Browse the repository at this point in the history
…course#259)

Signed-off-by: Kevin Bimonte <[email protected]>
  • Loading branch information
Kevin Bimonte committed Oct 26, 2024
1 parent 242a75a commit 5514740
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cluster/operations/aws-ssm-instance-profile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# This operations file will use remove the AWS SSM
# Access and Secret Access Key to instead use the instance
# profile of the web node.
#
# Requires the aws-ssm-manager.yml ops file

---
- type: remove
path: /instance_groups/name=web/jobs/name=web/properties/aws_ssm/access_key

- type: remove
path: /instance_groups/name=web/jobs/name=web/properties/aws_ssm/secret_key
17 changes: 17 additions & 0 deletions cluster/operations/aws-ssm-manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# This operations file will add AWS SSM Secrets Manager Support to
# the web node

---
- type: replace
path: /instance_groups/name=web/jobs/name=web/properties/aws_ssm?
value:
access_key: ((aws_ssm.access_key))
secret_key: ((aws_ssm.secret_key))
region: ((aws_ssm.region))

pipeline_secret_template: ((aws_ssm.pipeline_secret_template))
# default value is /concourse/{{.Team}}/{{.Pipeline}}/{{.Secret}}

team_secret_template: ((aws_ssm.team_secret_template))
# default value is /concourse/{{.Team}}/{{.Secret}}
16 changes: 16 additions & 0 deletions cluster/operations/aws-ssm-session-token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# This operations file will use a Session Token instead of
# a pair of Access and Secret Access Keys
#
# Requires the aws-ssm-manager.yml ops file

---
- type: remove
path: /instance_groups/name=web/jobs/name=web/properties/aws_ssm/access_key

- type: remove
path: /instance_groups/name=web/jobs/name=web/properties/aws_ssm/secret_key

- type: replace
path: /instance_groups/name=web/jobs/name=web/properties/aws_ssm/session_token
value: ((aws_ssm_session_token))
10 changes: 10 additions & 0 deletions cluster/operations/aws-ssm-shared-path.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# This operations file will add a shared path route
# in order to define secrets accessible by all teams.
#
# Requires the aws-ssm-manager.yml ops file

---
- type: replace
path: /instance_groups/name=web/jobs/name=web/properties/aws_ssm/shared_path?
value: ((aws_ssm_shared_path))
1 change: 1 addition & 0 deletions cluster/operations/ipv6_networking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# the IPv6 Protocol in addition to existing IPv4
#
# Requires the runtime-containerd.yml ops file

---
- type: replace
path: /instance_groups/name=worker/containerd/ipv6?
Expand Down

0 comments on commit 5514740

Please sign in to comment.