Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Linting remediation
Browse files Browse the repository at this point in the history
  • Loading branch information
davmayd committed Jul 18, 2022
1 parent 38d473f commit 550c741
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 20 deletions.
1 change: 1 addition & 0 deletions templates/ad-1.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Metadata:
ignore_checks:
- W9006
- E9101
- W9901
QuickStartDocumentation:
EntrypointName: Parameters for deploying self-managed AD into an existing VPC
Order: '2'
Expand Down
7 changes: 1 addition & 6 deletions templates/ad-3.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Metadata:
ignore_checks:
- W9006
- E9101
- W9901
QuickStartDocumentation:
EntrypointName: Parameters for deploying AWS Managed Microsoft AD into an existing VPC
Order: '6'
Expand Down Expand Up @@ -357,12 +358,6 @@ Conditions:
ShouldCreateTwoTierPkiResource: !Equals [!Ref PKI, 'Two-Tier']
UsingDefaultBucket: !Equals [!Ref QSS3BucketName, 'aws-quickstart']
Resources:
Windows2022AMISMParameter:
Type: AWS::SSM::Parameter
Properties:
Type: String
Value: !FindInMap [ AWSAMIRegionMap, !Ref "AWS::Region", WIN2022 ]
Description: Windows Server 2022 AMI ID from AWSAMIRegionMap
DHCPOptions:
Condition: ShouldCreateDHCPOption
Type: AWS::EC2::DHCPOptions
Expand Down
2 changes: 2 additions & 0 deletions templates/ad-main-1.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Metadata:
config:
ignore_checks:
- W9006
- W9901
- E9902
QuickStartDocumentation:
EntrypointName: Parameters for deploying self-managed AD into a new VPC
Order: '1'
Expand Down
2 changes: 2 additions & 0 deletions templates/ad-main-2.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Metadata:
config:
ignore_checks:
- W9006
- W9901
- E9902
QuickStartDocumentation:
EntrypointName: Parameters for extending on-premises AD into a new VPC
Order: '3'
Expand Down
2 changes: 2 additions & 0 deletions templates/ad-main-3.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Metadata:
config:
ignore_checks:
- W9006
- W9901
- E9902
QuickStartDocumentation:
EntrypointName: Parameters for deploying AWS Managed Microsoft AD into a new VPC
Order: '5'
Expand Down
2 changes: 2 additions & 0 deletions templates/ad-master-1.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Metadata:
config:
ignore_checks:
- W9006
- W9901
- E9902
QuickStartDocumentation:
EntrypointName: Parameters for deploying self-managed AD into a new VPC
Order: '1'
Expand Down
2 changes: 2 additions & 0 deletions templates/ad-master-2.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Metadata:
config:
ignore_checks:
- W9006
- W9901
- E9902
QuickStartDocumentation:
EntrypointName: Parameters for extending on-premises AD into a new VPC
Order: '3'
Expand Down
2 changes: 2 additions & 0 deletions templates/ad-master-3.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Metadata:
config:
ignore_checks:
- W9006
- W9901
- E9902
QuickStartDocumentation:
EntrypointName: Parameters for deploying AWS Managed Microsoft AD into a new VPC
Order: '5'
Expand Down
38 changes: 24 additions & 14 deletions templates/mgmt-1.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@ Description: >-
This template creates 1 Windows Server Managment Instance in a private subnet inside a VPC. **WARNING** This template creates an Amazon EC2 Windows
instance and related resources. You will be billed for the AWS resources used if you create a stack from this template. (qs-1rteoo9fs)
Metadata:
cfn-lint:
config:
ignore_checks:
- W9006
- W9901
- E9902
- W9002
- E9101
- W9003
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: Network Configuration
Parameters:
- VPCCIDR
- VPCID
# - VPCID
- MgmtServerSubnet
- DomainMembersSG
- Label:
Expand Down Expand Up @@ -76,8 +85,8 @@ Metadata:
default: Quick Start S3 Key Prefix
VPCCIDR:
default: VPC CIDR
VPCID:
default: VPC ID
# VPCID:
# default: VPC ID
Parameters:
AdministratorSecret:
Description: ARN for the Administrator credentials Secret
Expand Down Expand Up @@ -125,6 +134,7 @@ Parameters:
MgmtAmi:
Default: /aws/service/ami-windows-latest/Windows_Server-2022-English-Full-Base
Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
Description: AMI to use for the management instance
MgmtDataDriveSizeGiB:
Default: '2'
Description: Size of the data drive in GiB
Expand Down Expand Up @@ -186,18 +196,18 @@ Parameters:
Default: 10.0.0.0/16
Description: CIDR Block for the VPC
Type: String
VPCID:
Description: ID of the VPC (e.g., vpc-0343606e)
Type: AWS::EC2::VPC::Id
# VPCID:
# Description: ID of the VPC (e.g., vpc-0343606e)
# Type: AWS::EC2::VPC::Id
Rules:
SubnetsInVPC:
Assertions:
- Assert: !EachMemberIn
- !ValueOfAll
- AWS::EC2::Subnet::Id
- VpcId
- !RefAll 'AWS::EC2::VPC::Id'
AssertDescription: All subnets must in the VPC
# SubnetsInVPC:
# Assertions:
# - Assert: !EachMemberIn
# - !ValueOfAll
# - AWS::EC2::Subnet::Id
# - VpcId
# - !RefAll 'AWS::EC2::VPC::Id'
# AssertDescription: All subnets must in the VPC
NonWindowsDomainJoin:
RuleCondition: !Equals [!Ref NonWindowsDomainJoin, 'true']
Assertions:
Expand Down

0 comments on commit 550c741

Please sign in to comment.