Skip to content

Commit

Permalink
chore: delete fix
Browse files Browse the repository at this point in the history
  • Loading branch information
awsluja committed Oct 25, 2024
1 parent e6e38b7 commit 2395d07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const deleteOrphanedOidcProviders = async (account: AWSAccountInfo): Promise<voi
// these seem to be the only offending resources at this time, but we can add more later
if (provider.Arn.endsWith('oidc-provider/accounts.google.com')) {
console.log('OIDC PROVIDER:', provider.Arn);
await iamClient.deleteOpenIDConnectProvider({ OpenIDConnectProviderArn: provider.Arn });
await iamClient.deleteOpenIDConnectProvider({ OpenIDConnectProviderArn: provider.Arn }).promise();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const deleteOrphanedOidcProviders = async (account: AWSAccountInfo): Promise<voi
// these seem to be the only offending resources at this time, but we can add more later
if (provider.Arn.endsWith('oidc-provider/accounts.google.com')) {
console.log('OIDC PROVIDER:', provider.Arn);
await iamClient.deleteOpenIDConnectProvider({ OpenIDConnectProviderArn: provider.Arn });
await iamClient.deleteOpenIDConnectProvider({ OpenIDConnectProviderArn: provider.Arn }).promise();
}
}
}
Expand Down

0 comments on commit 2395d07

Please sign in to comment.