This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Default deletion override for Service linked role resources | |
| */ | |
| class IamServiceLinkedRoleAspect implements cdk.IAspect { | |
| visit(node: IConstruct): void { | |
| if (node instanceof cdk.CfnResource) { | |
| if (node.cfnResourceType === 'AWS::IAM::ServiceLinkedRole') { | |
| node.applyRemovalPolicy(cdk.RemovalPolicy.RETAIN); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowAdminAccess", | |
| "Effect": "Allow", | |
| "Action": "*", | |
| "Resource": "*" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Parameters: | |
| QSConfigurationType: | |
| Type: String | |
| Description: (Required) QuickSetup Configuration type | |
| Default: '' | |
| OptInRegions: | |
| Type: CommaDelimitedList | |
| Default: '' | |
| Description: Comma-separated list of opt-in regions | |
| LocalAdministrationRoleName: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Principal": { | |
| "Service": "cloudformation.amazonaws.com" | |
| }, | |
| "Action": "sts:AssumeRole", | |
| "Condition": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface AsffFile { | |
| Findings: Finding[]; | |
| } | |
| export interface Finding { | |
| Action: FindingAction; | |
| AwsAccountId: string; | |
| AwsAccountName: string; | |
| CompanyName: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| // SPDX-License-Identifier: MIT-0 | |
| exports.SUCCESS = "SUCCESS"; | |
| exports.FAILED = "FAILED"; | |
| exports.send = function(event, context, responseStatus, responseData, physicalResourceId, noEcho) { | |
| return new Promise((resolve, reject) => { | |
| var responseBody = JSON.stringify({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: kyverno.io/v1 | |
| kind: ClusterPolicy | |
| metadata: | |
| name: auto-vpa-creation | |
| annotations: | |
| policies.kyverno.io/title: Add default VPA | |
| policies.kyverno.io/category: Cost Optimization | |
| policies.kyverno.io/subject: Vertical Pod Autoscaler | |
| policies.kyverno.io/description: >- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <title>Starter Template</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const commonBinaryMimeTypes = new Set([ | |
| "application/octet-stream", | |
| // Docs | |
| "application/epub+zip", | |
| "application/msword", | |
| "application/pdf", | |
| "application/rtf", | |
| "application/vnd.amazon.ebook", | |
| "application/vnd.ms-excel", | |
| "application/vnd.ms-powerpoint", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Construct } from "constructs"; | |
| import * as customResource from 'aws-cdk-lib/custom-resources'; | |
| import { ClusterInfo } from "../spi"; | |
| interface Tag { | |
| Key: string; | |
| Value: string; | |
| } |
NewerOlder