Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrodlop committed Aug 6, 2024
1 parent be254e6 commit 161b05a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .cloudbees/workflows/bp-tf-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
run : |
terraform -chdir=blueprints/${{ env.ROOT }} init -reconfigure && CI=true make destroy
#https://repost.aws/knowledge-center/eks-api-server-unauthorized-error
- name: 01-getting-started - Add users
uses: docker://public.ecr.aws/r1n1q0e5/cloudbees-labs/tf-aws-cb-ci-eks-addon-agent:latest
if: contains(env.STAGES, 'users')
Expand All @@ -142,9 +143,17 @@ jobs:
kubectl get configmap aws-auth -n kube-system -o yaml
eksctl create iamidentitymapping \
--cluster $(terraform output --raw eks_cluster_name) \
--region ${{ env.TF_VAR_aws_region }} \
--arn arn:aws:iam::324005994172:role/aws-reserved/sso.amazonaws.com/AWSReservedSSO_infra-admin_256addbf79cfacd1 \
--username k8s-admin \
--username k8s-admin-rol \
--group system:masters
eksctl create iamidentitymapping \
--cluster $(terraform output --raw eks_cluster_name) \
--region ${{ env.TF_VAR_aws_region }} \
--arn arn:aws:sts::324005994172:assumed-role/AWSReservedSSO_infra-admin_256addbf79cfacd1/[email protected] \
--username k8s-admin-user \
--group system:masters \
--no-duplicate-arns
kubectl get configmap aws-auth -n kube-system -o yaml
bp02:
Expand Down

0 comments on commit 161b05a

Please sign in to comment.