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 Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

179 views 2 4
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