How to Integrate Jenkins With AWS

How to Integrate Jenkins With AWS

49.062 Lượt nghe
How to Integrate Jenkins With AWS
Need help with your Jenkins questions? Visit https://community.jenkins.io/c/using-jenkins/support/8 Timecodes ⏱: 00:00 Introduction 00:18 Overview 01:06 Starting point 02:06 Install AWS CLI v2 03:58 Install aws-credentials plugin 06:00 Create new pipeline job to use AWS CLI 07:12 Add aws ec2 describe-instances to pipeline 09:00 Add AWS_DEFAULT_REGION to pipeline 10:42 Create AWS credentials 13:22 Add withCredentials step to pipeline 16:33 Remove withCredentials and add credentials helper 21:04 Conclusion #jenkins #aws #awscli Information referenced in this video: Gist: https://gist.github.com/darinpope/cbdc036cec4cd49ae2548a4d2d050abd Jenkins LTS 2.289.1 https://www.jenkins.io/changelog-stable/#v2.289.1 Install the AWS CLI version 2 on Linux https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html#cliv2-linux-install describe-instances https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html Environment variables to configure the AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html Supported Credentials Type https://www.jenkins.io/doc/book/pipeline/syntax/#supported-credentials-type CredentialsBindingHandler https://www.jenkins.io/doc/developer/extensions/pipeline-model-extensions/#credentialsbindinghandler aws-credentials-plugin issue 68 https://github.com/jenkinsci/aws-credentials-plugin/issues/68 CloudBees on Twitter: https://twitter.com/CloudBees Darin on Twitter: https://twitter.com/DarinPope