Skip to content

Instantly share code, notes, and snippets.

@Enigo
Last active May 6, 2023 12:07
Show Gist options
  • Save Enigo/557c3a400da46ea5c41919ec98f23ca2 to your computer and use it in GitHub Desktop.
Save Enigo/557c3a400da46ea5c41919ec98f23ca2 to your computer and use it in GitHub Desktop.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Jenkins Role'
Resources:
JenkinsRole:
Type: AWS::IAM::Role
Properties:
Description: "Used for serverspec tests"
RoleName: instance-serverspec
Policies:
- PolicyName: allow-serverspec
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Action:
- s3:ListBucket
Resource:
- "arn:aws:s3:::serverspec"
- Effect: "Allow"
Action:
- s3:GetObject
Resource:
- "arn:aws:s3:::serverspec/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment