-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
34 lines (34 loc) · 1006 Bytes
/
template.yaml
File metadata and controls
34 lines (34 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Resources:
ExampleOperatorRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Principal:
Service:
- "lambda.amazonaws.com"
Action:
- "sts:AssumeRole"
ManagedPolicyArns:
- "arn:aws:iam::aws:policy/AWSLambdaManagedEC2ResourceOperator"
ExampleCapacityProvider:
Type: AWS::Lambda::CapacityProvider
Properties:
CapacityProviderName: "ExampleCapacityProvider"
InstanceRequirements:
Architectures:
- x86_64
AllowedInstanceTypes:
- m5.large
PermissionsConfig:
CapacityProviderOperatorRoleArn: !GetAtt ExampleOperatorRole.Arn
VpcConfig:
SubnetIds:
- subnet-08952b733d9560938
- subnet-08fa6cbbf146659a8
SecurityGroupIds: []
CapacityProviderScalingConfig:
MaxVCpuCount: 50
ScalingMode: "Auto"