Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add input constraints to AWS::OpsWorksCM::Server resource #16

Merged
merged 2 commits into from
May 22, 2020
Merged

Add input constraints to AWS::OpsWorksCM::Server resource #16

merged 2 commits into from
May 22, 2020

Conversation

avinash-karthik
Copy link
Contributor

Description of changes:

Every input parameter has regex and length restrictions for AWS::OpsWorksCM::Server resource

Testing

  • mvn package
  • pre-commit run --all-files
  • Launched a server locally

@avinash-karthik avinash-karthik merged commit 3a8c690 into aws-cloudformation:master May 22, 2020
Comment on lines +17 to +42
"pattern": "arn:aws:iam::[0-9]{12}:role/.*",
"maxLength": 10000
},
"DisableAutomatedBackup": {
"type": "boolean"
},
"BackupId": {
"type": "string"
"type": "string",
"pattern": "[a-zA-Z][a-zA-Z0-9\\-\\.\\:]*",
"maxLength": 79
},
"EngineModel": {
"type": "string"
"type": "string",
"maxLength": 10000
},
"PreferredMaintenanceWindow": {
"type": "string"
"type": "string",
"pattern": "^((Mon|Tue|Wed|Thu|Fri|Sat|Sun):)?([0-1][0-9]|2[0-3]):[0-5][0-9]$",
"maxLength": 10000
},
"AssociatePublicIpAddress": {
"type": "boolean"
},
"InstanceProfileArn": {
"type": "string"
"type": "string",
"pattern": "arn:aws:iam::[0-9]{12}:instance-profile/.*",
Copy link
Contributor

@PatMyron PatMyron Jul 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 98 to +100
"BackupRetentionCount": {
"type": "integer"
"type": "integer",
"minLength": 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants