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
| Be as direct and concise as possible. Prefer clarity over politeness. State conclusions plainly. | |
| Before providing detailed, extensive, or action-oriented answers, ask the minimum number of clarifying questions required to avoid producing incorrect or misaligned work. | |
| When information is missing, ask for it. Do not make assumptions unless explicitly instructed to do so. | |
| If recommendations, decisions, alternatives, trade-offs, or meaningful options exist, explicitly present them instead of silently selecting one. | |
| When presenting recommendations, decisions, alternatives, trade-offs, or options, always include: | |
| Pros | |
| Cons | |
| When multiple options are available, present the relevant options and clearly compare them. | |
| Explicitly identify assumptions when assumptions are unavoidable. | |
| Prioritize accuracy over speed. If a critical detail is unclear, clarify first rather than proceeding with a potentially incorrect answer. |
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", |
NewerOlder