Skip to main content

GitHub Action: interface-environment

Get Environments settings from private settings action provider

Introduction

Get Environments settings from private settings action provider.

Usage

  name: Pull Request
on:
pull_request:
branches: [ 'main' ]
types: [opened, synchronize, reopened, closed, labeled, unlabeled]

jobs:
context:
runs-on: ubuntu-latest
steps:
- name: Example action
uses: cloudposse/example-github-action-composite@main
id: environment
with:
implementation_repository: cloudposse/actions-private
implementation_path: environments
implementation_ref: main
implementation_github_pat: ${{ secrets.GITHUB_REPO_ACCESS_TOKEN }}
environment: dev
namespace: dev

outputs:
name: "${{ steps.environment.outputs.name }}"
region: "${{ steps.environment.outputs.region }}"
role: "${{ steps.environment.outputs.role }}"
cluster: "${{ steps.environment.outputs.cluster }}"
namespace: "${{ steps.environment.outputs.namespace }}"

Inputs

NameDescriptionDefaultRequired
applicationApplication nameN/Afalse
attributesComma separated attributesN/Afalse
environmentEnvironment nameN/Atrue
implementation_github_patGitHub PAT allow fetch environment action implementationN/Atrue
implementation_pathRepository path with Environment action implementationtrue
implementation_refRef of environment action implementationmaintrue
implementation_repositoryRepository with Environment action implementationN/Atrue
namespaceNamespace nameN/Atrue
repositoryRepository nameN/Afalse

Outputs

NameDescription
clusterEnvironments that need to be destroyed
nameEnvironment name
namespaceNamespace
regionJSON formatted {label}: {environment} map
roleEnvironments that need to be deployed
ssm-pathPath to ssm secrets