Skip to content

Commit

Permalink
fix(stacks.api): remove spot role
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <[email protected]>
  • Loading branch information
BradenM committed Aug 5, 2023
1 parent 3f13f78 commit 2963346
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
12 changes: 0 additions & 12 deletions packages/stacks/api/src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,6 @@ export const buildEKSStack = (
if (!apiStack) throw Error('No apistack config found.')
return blueprints.EksBlueprint.builder()
.version(KubernetesVersion.of(apiStack.eks.k8s.version))
.resourceProvider(
'spot-service-role',
new blueprints.CreateRoleProvider(
'SpotServiceRole',
new iam.ServicePrincipal('ec2.amazonaws.com'),
[
iam.ManagedPolicy.fromAwsManagedPolicyName(
'AWSEC2SpotServiceRolePolicy',
),
],
),
)
.addOns(...getCoreAddons(config))
.useDefaultSecretEncryption(apiStack.eks.defaultSecretsEncryption)
}
Expand Down
31 changes: 0 additions & 31 deletions packages/stacks/api/test/__snapshots__/main.spec.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2963346

Please sign in to comment.