terraform-provider-google
terraform-provider-google copied to clipboard
Add support for nodeConfig in ApigeeEnvironment
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
A new field "NodeConfig" is introduced to ApigeeEnvironment. Sample usage:
Creating an Environment
curl "https://apigee.googleapis.com/v1/organizations/$ORG_ID/environments" \
-H "$AUTH" \
-X POST \
-H "Content-Type:application/json" \
-d '{
"name":"'"$ENVIRONMENT_NAME"'",
"nodeConfig": {
"minNodeCount":"'"$MIN_NODE_COUNT"'",
"minNodeCount":"'"$MAX_NODE_COUNT"'",
}
}'
Modifying an existing Environment
curl -s "https://apigee.googleapis.com/v1/organizations/$ORG_ID/environments/$ENVIRONMENT_NAME?updateMask=node_config" \
-H "$AUTH" \
-X PATCH \
-H "Content-Type:application/json" \
-d '{
"nodeConfig": {
"minNodeCount":"'"$MIN_NODE_COUNT"'",
"minNodeCount":"'"$MAX_NODE_COUNT"'",
}
}'
Read Node Usage for an Environment
curl -s -H "$AUTH" "https://apigee.googleapis.com/v1/organizations/${ORG_ID}/environments/test"
{
"name": "test",
"createdAt": "1641850958094",
"lastModifiedAt": "1642706641741",
"displayName": "test",
"state": "ACTIVE",
"deploymentType": "PROXY",
"apiProxyType": "PROGRAMMABLE",
"nodeConfig": {
"minNodeCount": "3",
"maxNodeCount": "5",
"currentAggregateNodeCount": "6"
}
}
New or Affected Resource(s)
- google_apigee_environment
Potential Terraform Configuration
# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.
References
- b/236034006