Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkodroff committed Nov 4, 2024
1 parent 7887090 commit bd32722
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aws-ts-oidc-provider-pulumi-cloud/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const pulumiOrg = pulumi.getOrganization();
// NOTE: At the time of writing, if you are still using the legacy "default"
// organization, the format for the audience OIDC claim is different. Best
// practice is to avoid using the legacy default project.
const oidcAudience = escProject == "default" ? pulumiOrg : `aws:${pulumiOrg}`;
const oidcAudience = escProject === "default" ? pulumiOrg : `aws:${pulumiOrg}`;

const oidcIdpUrl: string = "https://api.pulumi.com/oidc";

Expand Down Expand Up @@ -50,6 +50,7 @@ const role = new aws.iam.Role("pulumi-cloud-admin", {
assumeRolePolicy: policyDocument.json,
});

// tslint:disable-next-line:no-unused-expression
new aws.iam.RolePolicyAttachment("policy", {
policyArn: "arn:aws:iam::aws:policy/AdministratorAccess",
role: role.name,
Expand All @@ -70,11 +71,12 @@ values:
AWS_SESSION_TOKEN: \${aws.login.sessionToken}
`;

// tslint:disable-next-line:no-unused-expression
new pulumiservice.Environment("aws-esc-oidc-env", {
organization: pulumiOrg,
project: escProject,
name: escEnvName,
yaml: envYaml.apply(yaml => new pulumi.asset.StringAsset(yaml)),
});

export const escEnvironment = pulumi.interpolate`${escProject}/${escEnvName}`;
export const escEnvironment = pulumi.interpolate`${escProject}/${escEnvName}`;

0 comments on commit bd32722

Please sign in to comment.