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

Latest commit

 

History

History
31 lines (23 loc) · 889 Bytes

pre-prune.md

File metadata and controls

31 lines (23 loc) · 889 Bytes

pre-prune

Lifecycle

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

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). This is not the DNS of the ELB that instances were promoted into.