Skip to content
Merged
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
4 changes: 4 additions & 0 deletions e2e/internal/client/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ type TaskRunInput struct {

Image string
Dockerfile string
EnvFile string

Subnets []string
SecurityGroups []string
Expand Down Expand Up @@ -893,6 +894,9 @@ func (cli *CLI) TaskRun(input *TaskRunInput) (string, error) {
if input.Image != "" {
commands = append(commands, "--image", input.Image)
}
if input.EnvFile != "" {
commands = append(commands, "--env-file", input.EnvFile)
}
if input.AppName != "" {
commands = append(commands, "--app", input.AppName)
}
Expand Down
1 change: 1 addition & 0 deletions e2e/task/backend/check_override.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ sleep 20

for i in 1 2 3 4 5 6 7 8; do
echo "e2e environment variables: $STATUS"
echo "$BEST_ICE_CREAM_FLAVOR"
sleep 3
done
1 change: 1 addition & 0 deletions e2e/task/sesame.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BEST_ICE_CREAM_FLAVOR=sesame
2 changes: 2 additions & 0 deletions e2e/task/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ var _ = Describe("Task", func() {

AppName: appName,
Env: envName,

EnvFile: "./sesame.env",
})
})

Expand Down
5 changes: 5 additions & 0 deletions internal/pkg/template/templates/task/cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ Resources:
Principal:
AWS:
- !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:root
{{- if and .App .Env }}
AWS:
- !Sub 'arn:${AWS::Partition}:iam::${AWS::AccountId}:role/{{ .App }}-{{ .Env }}-EnvManagerRole'
{{- end}}

Outputs:
ECRRepo:
Description: ECR Repo used to store images of task.
Expand Down