Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_ecs_patterns: add environment parameter to ScheduledFargateTaskDefinitionOptions #27513

Open
2 tasks
mrtngrbmn opened this issue Oct 12, 2023 · 2 comments
Open
2 tasks
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Comments

@mrtngrbmn
Copy link

mrtngrbmn commented Oct 12, 2023

Describe the feature

Add environment variables parameter to a ScheduledFargateTask like it is possible in ScheduledFargateTaskImageOptions

Use Case

I want to reuse a task definition for a list of tasks, but also want to hand over a list of environment variables to set it for the containers.
The same is possible in the AWS web console (Scheduled Task->Update->Container overwrites)

At the moment a new task definition is created for each task using the ScheduledFargateTaskImageOptions method.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.84

Environment details (OS name and version, etc.)

Amazon Linux 2

@mrtngrbmn mrtngrbmn added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Oct 12, 2023
@github-actions github-actions bot added the @aws-cdk/aws-ecs-patterns Related to ecs-patterns library label Oct 12, 2023
@peterwoodworth peterwoodworth added p2 effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. labels Oct 12, 2023
@peterwoodworth
Copy link
Contributor

Hey, there are a number of similar reported FRs for our patterns constructs. Our patterns are opinionated, if you need fine control over the resources we suggest dropping down to the L2 constructs.

That said, we can still accept this as a feature request, thanks for the ask

@mrtngrbmn
Copy link
Author

Thanks a lot. Could you give me just a small hint which methods to use to created a scheduled fargate tasks without using the pattern? I really search the docu and the internet, but it seems everybody is used ScheduledFargateTask pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

2 participants