Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Latest commit

 

History

History
35 lines (25 loc) · 919 Bytes

pre-promote.md

File metadata and controls

35 lines (25 loc) · 919 Bytes

pre-promote

Use Cases

  • Running integration tests against the provisioned stack's ELB

Lifecycle

This hook is called from porter build promote for each region before any regions are promoted (as opposed to before each region is promoted)

Environment

Standard and Custom environment variables

PORTER_ENVIRONMENT
AWS_REGION

AWS_DEFAULT_REGION AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_SECURITY_TOKEN are available to enable AWS SDKs to make API calls and are the credentials of the assumed role.

AWS_CLOUDFORMATION_STACKID is known after provisioning and is set by porter.

AWS_ELASTICLOADBALANCING_LOADBALANCER_DNS is the DNS of the provisioned ELB (which may be an empty string if the ELB is internal).