Sha256: fe278c8f444f8af3695fc83d50bfd7bfbe18f4200583eb7371b9c171b465966b

Contents?: true

Size: 1.21 KB

Versions: 3

Compression:

Stored size: 1.21 KB

Contents

---
# image_id: ami-97785bed # Amazon Linux AMI
image_id: ami-4fffc834 # Amazon Lambda AMI
  # https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
instance_type: t2.medium
key_name: default
max_count: 1
min_count: 1
user_data: "<%= user_data("bootstrap.sh") %>"
iam_instance_profile:
  name: <%= ENV['IAM_INSTANCE_PROFILE'] %>
# public network settings
security_group_ids: <%= @security_group_ids.inspect %>
subnet_id: <%= @subnets.shuffle.first %>
block_device_mappings:
  - device_name: /dev/xvda
    ebs:
      volume_size: 20
instance_market_options:
  market_type: spot
  # https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateSpotMarketOptionsRequest.html
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Types/SpotMarketOptions.html
  spot_options:
    max_price: "0.018" # $0.020/hr = $14.40/mo
                       # $0.018/hr = $12.96/mo
    # valid combinations:
    #   spot_instance_type: persistent
    #   instance_interruption_behavior: hibernate
    # or
    #   spot_instance_type: one-time
    # More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html
    spot_instance_type: persistent
    instance_interruption_behavior: hibernate

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
forger-3.0.2 spec/fixtures/demo_project/profiles/default.yml
forger-3.0.1 spec/fixtures/demo_project/profiles/default.yml
forger-3.0.0 spec/fixtures/demo_project/profiles/default.yml