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

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

Open
christrt9 opened this issue Aug 27, 2024 · 1 comment
Labels
area/api-docs awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec

Comments

@christrt9
Copy link

christrt9 commented Aug 27, 2024

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:

@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Aug 27, 2024
@corymhall
Copy link
Contributor

@christrt9 thanks for letting us know. Looks like this is due to the upstream docs being incorrect https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/apigatewayv2_stage

@corymhall corymhall added area/api-docs impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Aug 27, 2024
@mjeffryes mjeffryes added blocked The issue cannot be resolved without 3rd party action. awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api-docs awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). blocked The issue cannot be resolved without 3rd party action. impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

4 participants