Coder Social home page Coder Social logo

aws-sam-plugin's Introduction

AWS SAM plugin for Jenkins

Status

codecov License wiki Build Status

This plugin packages and deploys both CloudFormation and SAM templates with a security first mindset.

Github link: https://github.com/trek10inc/jenkins-aws-sam-plugin

Features

This plugins adds Jenkins pipeline steps to interact with the AWS API.

Installation

  1. Navigate to your Jenkins server
  2. On the left, click Manage Jenkins
  3. Scroll down to find Manage Plugins and click it
  4. Look for the AWS SAM plugin

IAM Setup

For deployment you'll need access to an S3 bucket (or permission to create one), CloudFormation and ChangeSet IAM lifecycle actions, as well as any IAM permissions required to create the resources in your SAM (CloudFormation) Template.

S3 Policy (you may want to limit Resource to specific S3 Buckets)

---
Version: '2012-10-17'
Statement:
- Sid: SAMS3Actions
  Resource: '*'
  Effect: Allow
  Action:
  - s3:CreateBucket
  - s3:GetBucketLocation
  - s3:ListBucket
  - s3:PutObject
  - s3:PutObjectAcl
  - s3:PutObjectTagging
...

CloudFormation Policy (you may want to limit Resource to specific stacks)

---
Version: '2012-10-17'
Statement:
- Sid: SAMCloudFormationActions
  Resource: '*'
  Effect: Allow
  Action:
  - cloudformation:ValidateTemplate
  - cloudformation:DescribeStacks
  - cloudformation:CreateChangeSet
  - cloudformation:DescribeChangeSet
  - cloudformation:ExecuteChangeSet
...

Usage / Steps

Jenkins

[TBD]

samDeploy

samDeploy([credentialsId: 'jenkins_sandbox', region: 'us-east-1', s3Bucket: 'sam-jenkins-plugin', stackName: 'sam-jenkins-plugin', parameters: [[key: 'Username', value: 'Modest']], templateFile: 'template.yml'])

aws-sam-plugin's People

Contributors

modmac avatar mikedeck avatar mbarneyjr avatar seansummers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.