An API Gateway Deployment should have an associated UsagePlan defined using the aws_api_gateway_usage_plan resource, with the api_stages attribute referencing the relevant API and stage. Without a UsagePlan, API Gateway endpoints are left unprotected, allowing unlimited, unauthenticated access and risking abuse, denial of service, or unexpected cost overruns. To prevent this, always associate deployments with a UsagePlan, as shown below:
resource"aws_api_gateway_deployment""positive1"{rest_api_id="some rest api id"stage_name="some name"tags{project="ProjectName"}}resource"aws_api_gateway_deployment""positive2"{rest_api_id="some rest api id"stage_name="development"}resource"aws_api_gateway_usage_plan""positive3"{name="my-usage-plan"description="my description"product_code="MYCODE"api_stages{api_id="another id"stage="development"}}
1
2
rulesets:- Terraform / AWS # Rules to enforce / AWS.
맞춤형 데모 요청
Datadog 시작하기
Ask AI
AI-generated responses may be inaccurate. Verify important info.