Skip to content

Instantly share code, notes, and snippets.

@gotoweb
Created February 11, 2025 06:41
Show Gist options
  • Save gotoweb/4a0b1303cce5d2348497beba7b0ab9fa to your computer and use it in GitHub Desktop.
Save gotoweb/4a0b1303cce5d2348497beba7b0ab9fa to your computer and use it in GitHub Desktop.
CloudFormation을 이용한 IAM 역할 생성
AWSTemplateFormatVersion: '2010-09-09'
Description: 'LambdaDeploymentRole'
Resources:
LambdaDeploymentRole:
Type: AWS::IAM::Role
Properties:
RoleName: MLOps-LambdaDeploymentRole
Path: "/"
ManagedPolicyArns:
- "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
- "arn:aws:iam::aws:policy/AmazonSageMakerFullAccess"
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
Action:
- sts:AssumeRole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment