Sha256: 70356ff099c0c1ee63f06b98f1690423df0605c1ef406c883ff63bc22e9be24e
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
### first ```ruby describe vpc_endpoints('vpce-05907f23265b25f20'), region: $tfvars["region"]["value"] do it { should exist } it { should be_available } it { should have_subnet('subnet-040e19eabf3226f99') } it { should belong_to_vpc('vpc-00af9dcc0134b48e0') } its(:private_dns_enabled) { should eq true } its(:vpc_endpoint_type) { should eq 'Interface' } its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' } end ``` ### exist ```ruby describe vpc_endpoints('my-vpc-endpoint') do it { should exist } end ``` ### be_pendingacceptance, be_pending, be_available, be_deleting, be_deleted, be_rejected, be_failed, be_expired ```ruby describe vpc_endpoints('my-vpc-endpoint') do it { should be_available } end ``` ### belong_to_vpc ```ruby describe vpc_endpoints('my-vpc-endpoint') do it { should belong_to_vpc('my-vpc') } end ``` ### have_route_table ```ruby describe vpc_endpoints('my-vpc-endpoint') do it { should have_route_table('rtb-abc123') } end ``` ### have_subnet ```ruby describe vpc_endpoints('my-vpc-endpoint') do it { should have_subnet('subnet-abc123') } end ``` ### have_tag ```ruby describe vpc_endpoints('my-vpc-endpoint') do it { should have_tag('env').value('dev') } end ``` ### advanced `vpc_endpoints` can use `Aws::EC2::Types::VpcEndpoint` resource (see https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Types/VpcEndpoint.html). ```ruby describe vpc_endpoints('my-vpc-endpoint') do its(:private_dns_enabled) { should eq true } its(:vpc_endpoint_type) { should eq 'Interface' } its(:service_name) { should eq 'com.amazonaws.eu-west-1.codebuild' } end ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
awspec-1.28.1 | doc/_resource_types/vpc_endpoints.md |