Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Mar 15, 2019
1 parent e4fae2c commit 895851f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ resource "apigee_api_proxy_deployment" "helloworld_proxy_deployment" {
proxy_name = "${apigee_api_proxy.helloworld_proxy.name}"
org = "${var.org}"
env = "${var.env}"
# NOTE: revision = "latest"
# will deploy the latest revision of the api proxy
revision = "${apigee_api_proxy.helloworld_proxy.revision}"
}
Expand Down

2 comments on commit 895851f

@bostrowski13
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiousity, what drives the revision of the proxy deployment? is it a setting in a specific file in the bundle?

@zambien
Copy link
Owner

@zambien zambien commented on 895851f Nov 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The revision is a setting that is stored and tracked in Apigee. When you upload a proxy bundle via their API you set a revision on the uri. That revision is used to create a proxy deployment.

https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revisions/%7Brevision_number%7D-0

Please sign in to comment.