Sha256: e17e25ecf778e3565a38d50123fae987026042f6f629793192071e916d2934ac

Contents?: true

Size: 1.18 KB

Versions: 58

Compression:

Stored size: 1.18 KB

Contents

### exist

You can set launch template version ( default: $Default ).

```ruby
# launch_template_id or launch_template_name
describe launch_template('my-launch-template') do
  it { should exist }
  its(:default_version_number) { should eq 1 }
  its(:latest_version_number) { should eq 2 }
  its('launch_template_version.launch_template_data.image_id') { should eq 'ami-12345foobar' }
  its('launch_template_version.launch_template_data.instance_type') { should eq 't2.micro' }
end
```

#### specify version
 
Specify "latest" or version_number.
 
```ruby
# version_number
describe launch_template('my-launch-template'), version: 2 do
  it { should exist }
  its('launch_template_version.launch_template_data.instance_type') { should eq 't2.micro' }
end

# latest
describe launch_template('my-launch-template'), version: 'latest' do
  it { should exist }
  its('launch_template_version.launch_template_data.instance_type') { should eq 't2.micro' }
end
```
 
### have_tag

```ruby
describe launch_template('my-launch-template') do
  it { should have_tag('env').value('dev') }
end
```

### have_version_number

```ruby
describe launch_template('my-launch-template') do
  it { should have_version_number(2) }
end
```

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
awspec-1.31.0 doc/_resource_types/launch_template.md
awspec-1.30.0 doc/_resource_types/launch_template.md
awspec-1.29.3 doc/_resource_types/launch_template.md
awspec-1.29.2 doc/_resource_types/launch_template.md
awspec-1.29.1 doc/_resource_types/launch_template.md
awspec-1.29.0 doc/_resource_types/launch_template.md
awspec-1.28.2 doc/_resource_types/launch_template.md
awspec-1.28.1 doc/_resource_types/launch_template.md
awspec-1.28.0 doc/_resource_types/launch_template.md
awspec-1.27.1 doc/_resource_types/launch_template.md
awspec-1.27.0 doc/_resource_types/launch_template.md
awspec-1.26.0 doc/_resource_types/launch_template.md
awspec-1.25.2 doc/_resource_types/launch_template.md
awspec-1.25.1 doc/_resource_types/launch_template.md
awspec-1.25.0 doc/_resource_types/launch_template.md
awspec-1.24.4 doc/_resource_types/launch_template.md
awspec-1.24.3 doc/_resource_types/launch_template.md
awspec-1.24.2 doc/_resource_types/launch_template.md
awspec-1.24.1 doc/_resource_types/launch_template.md
awspec-1.24.0 doc/_resource_types/launch_template.md