Skip to content

Support adding to the Deployment DependsOn list #7338

Description

@glb

Feature Proposal

Description

I have an AWS::ApiGateway::Method that I think I need to specify manually in the Resources section. There doesn't seem to be a way to add this resource to the DependsOn list for the generated AWS::ApiGateway::Deployment ... because the ID for the deployment is generated, I can't put something in Resources and have it merged the way I can with other stack resources.

Because I can't make the deployment depend on the resource creation, the resource might not be created by the time the deployment starts, which means that the resource won't be available in my deployed API.

Proposal: allow specifying deployment.dependsOn: [resourceId...].

Sample configuration:

provider:
  apigateway:
    deployment:
      dependsOn:
        - resourceID1
        - resourceID2

Related code:

DependsOn: this.apiGatewayMethodLogicalIds,

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions