File tree 2 files changed +9
-12
lines changed
2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 48
48
role-to-assume : arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-${{ inputs.service_name }}-role
49
49
role-session-name : ga-${{ inputs.service_name }}
50
50
aws-region : eu-central-1
51
+ -
52
+ name : Create Kubeconfig file for staging
53
+ run : ' echo "$STAGING_KUBECONFIG" > /home/runner/config'
54
+ shell : bash
55
+ env :
56
+ STAGING_KUBECONFIG : ${{secrets.STAGING_KUBECONFIG}}
51
57
-
52
58
name : Install Terraform
53
59
uses : hashicorp/setup-terraform@v1
Original file line number Diff line number Diff line change @@ -22,17 +22,8 @@ terraform {
22
22
}
23
23
}
24
24
25
- data "aws_eks_cluster" "cluster" {
26
- name = var. cluster_name
27
- }
28
-
29
- data "aws_eks_cluster_auth" "cluster" {
30
- name = var. cluster_name
31
- }
32
-
33
25
provider "kubectl" {
34
- host = data. aws_eks_cluster . cluster . endpoint
35
- cluster_ca_certificate = base64decode (data. aws_eks_cluster . cluster . certificate_authority [0 ]. data )
36
- token = data. aws_eks_cluster_auth . cluster . token
37
- load_config_file = false
26
+ config_path = " /home/runner/config"
27
+ load_config_file = true
28
+ apply_retry_count = 15
38
29
}
You can’t perform that action at this time.
0 commit comments