Last active
June 15, 2020 18:09
-
-
Save ricardoribas/387bc5ec71d0bc1f69a0d5bae3896ef6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jenkinsSpotFleet: | |
DependsOn: | |
- otherDependencies | |
Properties: | |
SpotFleetRequestConfigData: | |
AllocationStrategy: diversified | |
LaunchSpecifications: | |
- ImageId: | |
Fn::FindInMap: | |
- amazonLinuxAmi | |
- Ref: AWS::Region | |
- AMI | |
InstanceType: typeOfInstance | |
BlockDeviceMappings: | |
- DeviceName: /dev/xvda | |
Ebs: | |
DeleteOnTermination: true | |
VolumeSize: 50 | |
UserData: | |
Fn::Base64: | |
Fn::Sub: '#!/bin/bash -xe | |
# execute all launch commands | |
' | |
TerminateInstancesWithExpiration: true | |
Type: AWS::EC2::SpotFleet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment