Skip to content

Conversation

@naveenkoppula
Copy link
Contributor

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment on lines 111 to 112
for (const region of regions) {
const sts = new STS();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (const region of regions) {
const sts = new STS();
const sts = new STS();
for (const region of regions) {

Comment on lines 231 to 234
if (e.code === 'VPCAssociationNotFound') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
} else if (e.code === 'NoSuchHostedZone') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (e.code === 'VPCAssociationNotFound') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
} else if (e.code === 'NoSuchHostedZone') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
if (e.code === 'VPCAssociationNotFound' || e.code === 'NoSuchHostedZone') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
}

Comment on lines 248 to 252
if (e.code === 'VPCAssociationNotFound') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
} else if (e.code === 'NoSuchHostedZone') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (e.code === 'VPCAssociationNotFound') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
} else if (e.code === 'NoSuchHostedZone') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
} else {
if (e.code === 'VPCAssociationNotFound' || e.code === 'NoSuchHostedZone') {
console.warn(`The specified VPC "${vpcId}" and hosted zone "${hostedZoneId}" are not currently associated.`);
} else {

@naveenkoppula naveenkoppula merged commit 816a0b9 into master Oct 8, 2020
@naveenkoppula naveenkoppula deleted the fix/Interface-Endpoints branch October 8, 2020 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants