Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ type Service struct {
AssignPublicIP bool `yaml:"assignPublicIp,omitempty"`
Links []string `yaml:"links,omitempty"`
Environment map[string]interface{} `yaml:"environment,omitempty"`
Secrets map[string]interface{} `yaml:"secrets,omitempty"`
PathPatterns []string `yaml:"pathPatterns,omitempty"`
HostPatterns []string `yaml:"hostPatterns,omitempty"`
Priority int `yaml:"priority,omitempty" validate:"max=50000"`
Expand Down
9 changes: 9 additions & 0 deletions templates/assets/cloudformation/service-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,15 @@ Resources:
- !Ref AWS::NoValue
#DnsSearchDomains:
#- Fn::ImportValue: !Sub ${ServiceDiscoveryName}
{{if .Secrets}}
Secrets:
{{with .Secrets}}
{{range $key, $val := .}}
- Name: {{$key}}
ValueFrom: !Sub {{$val}}
{{end}}
{{end}}
{{end}}
Environment:
{{with .Environment}}
{{range $key, $val := .}}
Expand Down
3 changes: 3 additions & 0 deletions templates/assets/cloudformation/service-iam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ Resources:
- logs:PutLogEvents
- logs:DescribeLogGroups
- logs:DescribeLogStreams
- ssm:GetParameters
- secretsmanager:GetSecretValue
- kms:Decrypt
Resource: '*'

EksPodRole:
Expand Down