There are more AWS SDK examples available in the AWS Doc SDK Examples
Use CreateDeployment
with an AWS SDK or CLI
The following code examples show how to use CreateDeployment
.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example:
- AWS CLI
-
To deploy the configured resources for an API to a new Stage
Command:
aws apigateway create-deployment --rest-api-id
1234123412
--stage-namedev
--stage-description 'Development Stage
' --description 'First deployment to the dev stage
'To deploy the configured resources for an API to an existing stage
Command:
aws apigateway create-deployment --rest-api-id
1234123412
--stage-namedev
--description 'Second deployment to the dev stage
'To deploy the configured resources for an API to an existing stage with Stage Variables
aws apigateway create-deployment --rest-api-id 1234123412 --stage-name dev --description 'Third deployment to the dev stage' --variables key='value',otherKey='otherValue'
-
For API details, see CreateDeployment
in AWS CLI Command Reference.
-