Skip to content

apigateway.Stage required deployment but in documentation it don't have it #4408

Open

Description

From Website it said and the example for stage deployment is optional

Also from Deployment Page it recommended to use Stage only.

WARNING: It is recommended to use the aws.apigateway.Stage resource instead of managing an API Gateway Stage via the stage_name argument of this resource

Code:

from pulumi_aws import apigateway,lambda_
..

self.stage = apigateway.Stage(
    "apiStage",
    rest_api=self.api.id,
    #deployment=self.deployment.id,
    #stage_name="prod"
)


Error :

venv/lib/python3.10/site-packages/pulumi_aws/apigateway/stage.py", line 686, in _internal_init
        raise TypeError("Missing required property 'deployment'")
    TypeError: Missing required property 'deployment'

requirements.txt

pulumi>=3.0.0,<4.0.0
pulumi-aws>=6.0.0

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/api-docsawaiting-upstreamThe issue cannot be resolved without action in another repository (may be owned by Pulumi).blockedThe issue cannot be resolved without 3rd party action.impact/usabilitySomething that impacts users' ability to use the product easily and intuitivelykind/bugSome behavior is incorrect or out of spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions