awslabs / aws-sdk-kotlin

Multiplatform AWS SDK for Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ecs task 'overrides' to eventbridge builder

samburtonlaurie opened this issue · comments

Describe the feature

I may be missing something but i can't seem to find overrides for an EcsParameters. In the console you can add container overrides like in the SS attached.
image

Is your Feature Request related to a problem?

N/a

Proposed Solution

Start by adding public var overrides kotlin.String? = null into aws.sdk.kotlin.services.eventbridge.model.EcsParameters.Builder

Describe alternative solutions or features you've considered

No response

Acknowledge

  • I may be able to implement this feature request

AWS Kotlin SDK version used

1.1.25

Platform (JVM/JS/Native)

JVM

Operating System and version

n/a

This should probably be part of the scheduler rather than eventbridge actually.

I'm not familiar with this feature but it appears to be available through Amazon EventBridge Pipes and requires using the PipesClient via the package aws.sdk.kotlin:pipes.

PipesClient.fromEnvironment().use { pipes ->
    pipes.createPipe {
        targetParameters {
            ecsTaskParameters {
                overrides {
                    containerOverrides = listOf(
                        EcsContainerOverride {
                            …
                        }
                    )
                }
            }
        }
    }
}

Is that what you're looking for or is yours a different use case?

I found you can use the SchedulerClient and just put the containeroverrides in the input of Target.
Thanks for getting back to me @ianbotsf

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.