Skip to content

Commit

Permalink
updating example
Browse files Browse the repository at this point in the history
  • Loading branch information
corymhall committed Aug 23, 2024
1 parent 80ebc69 commit e92f192
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions examples/appsvc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ import * as aws from '@pulumi/aws';

const defaultVpc = pulumi.output(aws.ec2.getVpc({ default: true }));
const defaultVpcSubnets = defaultVpc.id.apply((id) => aws.ec2.getSubnetIds({ vpcId: id }));
const azs = pulumi.output(
aws
.getAvailabilityZones({
filters: [
{
name: 'opt-in-status',
values: ['opt-in-not-required'],
},
],
})
.then((az) => az.names),
);
const azs = aws.getAvailabilityZonesOutput({
filters: [
{
name: 'opt-in-status',
values: ['opt-in-not-required'],
},
],
}).names;

class ClusterStack extends pulumicdk.Stack {
serviceName: pulumi.Output<string>;
Expand Down

0 comments on commit e92f192

Please sign in to comment.