Eks Argo Refarch Setup Question - Post Deploy #72
-
Hi Folks, We were able to deploy ( Following next steps on refarch .. we are confused what to do next We do not see a template github workflow in the starter i.e. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
It looks like that's missing from the template. Here's what you'll need to add: # .github/workflows/environments/action.yaml <-- this file path will need to match whatever file path you specify in your reusable workflows
name: "Environments - ArgoCD"
description: "Get information about the environment"
inputs:
environment:
description: "Environment name"
required: true
application:
description: "The application name"
required: false
namespace:
description: "Namespace name"
required: true
outputs:
name:
description: "Environment name"
value: ${{ inputs.environment }}
region:
description: "AWS Region"
value: us-east-1 # cloudposse/github-action-kubernetes-environment does not have a 'region' output. <---- Set this to your default region!
role:
description: "IAM Role"
value: ${{ steps.result.outputs.role }}
cluster:
description: "Cluster"
value: ${{ steps.result.outputs.cluster }}
namespace:
description: "Namespace"
value: ${{ steps.result.outputs.namespace }}
ssm-path:
description: "SSM Path"
value: ${{ steps.result.outputs.ssm-path }}
runs:
using: "composite"
steps:
- uses: cloudposse/[email protected]
id: result
with:
environment: ${{ inputs.environment }}
namespace: ${{ inputs.namespace }}
application: ${{ inputs.application }}
config: |
# Change these to match the environment mapping for your environment!
preview:
cluster: https://github.com/YOUR_ORG/argocd-deploy-non-prod/blob/main/plat/use1-dev/apps
cluster-role: arn:aws:iam::DEV_ACCOUNT_ID:role/acme-plat-use1-dev-eks-gha
namespace: ${{ inputs.namespace }}
ssm-path: platform/acme-plat-use1-dev-eks-cluster
reformat: branch-name
dev:
cluster: https://github.com/YOUR_ORG/argocd-deploy-non-prod/blob/main/plat/use1-dev/apps
cluster-role: arn:aws:iam::DEV_ACCOUNT_ID:role/acme-plat-use1-dev-eks-gha
namespace: dev
ssm-path: platform/acme-plat-use1-dev-eks-cluster
staging:
cluster: https://github.com/YOUR_ORG/argocd-deploy-prod/blob/main/plat/use1-staging/apps
cluster-role: arn:aws:iam::STAGING_ACCOUNT_ID:role/acme-plat-use1-staging-eks-gha
namespace: staging
ssm-path: platform/acme-plat-use1-staging-eks-cluster
prod:
cluster: https://github.com/YOUR_ORG/argocd-deploy-prod/blob/main/plat/use1-prod/apps
cluster-role: arn:aws:iam::PROD_ACCOUNT_ID:role/acme-plat-use1-prod-eks-gha
namespace: prod
ssm-path: platform/acme-plat-use1-prod-eks-cluster
|
Beta Was this translation helpful? Give feedback.
-
@dukarc, just checking in—do Dan’s replies above resolve your question? If so, feel free to mark this as answered. Let us know if there’s anything still unclear! |
Beta Was this translation helpful? Give feedback.
It looks like that's missing from the template. Here's what you'll need to add: