Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How multiple apply aws eks?

i need apply several yaml files in bitbucket pipeline

1.yaml

.

.

.

n.yaml

Now i use construction with multiple pipes:

######################################### DEPLOYMENT  1.yaml    
            - pipe: atlassian/aws-eks-kubectl-run:1.4.1 
             
variables:  
               
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}  
               
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} 
               
AWS_DEFAULT_REGION: ${AWS_REGION}  
              
CLUSTER_NAME: ${CLUSTER_NAME}      
           
KUBECTL_COMMAND: "apply"       
          
RESOURCE_PATH: "1.yaml"  
              
DEBUG: "true"  
######################################### DEPLOYMENT  2.yaml    
            - pipe: atlassian/aws-eks-kubectl-run:1.4.1 
             variables:  
               AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}  
               AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} 
               AWS_DEFAULT_REGION: ${AWS_REGION}  
               CLUSTER_NAME: ${CLUSTER_NAME}      
           KUBECTL_COMMAND: "apply"       
          RESOURCE_PATH: "2.yaml"  
               DEBUG: "true"  

 

But it looks not good, i want once run pipe, like :

 

######################################### DEPLOYMENT  1.yaml  ... n.yaml  
            - pipe: atlassian/aws-eks-kubectl-run:1.4.1 
             
variables:  
               
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}  
               
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} 
               
AWS_DEFAULT_REGION: ${AWS_REGION}  
              
CLUSTER_NAME: ${CLUSTER_NAME}      
           
KUBECTL_COMMAND: "apply"       
          
RESOURCE_PATH: "1.yaml" , "n.yaml" 
              
DEBUG: "true"  

 But it is not working.

 

May be you know another way to do it? 

 

1 answer

0 votes

@Nikolai Zhukovyou can pass a directory that contains your .yml files for kubernetes to apply.

Like RESOURCE_PATH: 'dir', where dir will contain 1.yaml , n.yaml

Regards, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Security Advisory for Jira Service Management

On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link.  We've seen a number of questions already asking for...

76 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you