-
Notifications
You must be signed in to change notification settings - Fork 189
Support for FSx ONTAP during tenant onboarding. #258
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
Conversation
- Changes to the tenant-onboarding tempates to create FSx ONTAP resources - Adding the private subnet route table to the tenant resources so we can pass it to the FSx file system resource - Have the installer save the AD password to Secrets Manager so we can resolve it in CloudFormation for the storage virtual machine resource - Updates to security groups and IAM policies - Update the DNS hostname custom resource to work for both FSx Windows and FSx ONTAP - Update the user data boot script for Windows to properly mount the storage virtual machine Co-authored-by: netapp-vedantsethia <Vedant.Sethia@netapp.com> Co-authored-by: netapp-dhruv-tyagi <Dhruv.Tyagi@netapp.com>
PoeppingT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, just a couple small changes required
| - fsx:TagResource | ||
| - fsx:UntagResource | ||
| Resource: | ||
| - !Sub arn:aws:fsx:${AWS::Region}:${AWS::AccountId}:file-system/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should be AWS::Partition to support aws-cn
| Condition: ProvisionFSx | ||
| Properties: | ||
| TemplateURL: !Sub 'https://{{resolve:ssm:/saas-boost/${Environment}/SAAS_BOOST_BUCKET}}.s3.amazonaws.com/tenant-onboarding-fsx.yaml' | ||
| TemplateURL: !Sub 'https://{{resolve:ssm:/saas-boost/${Environment}/SAAS_BOOST_BUCKET}}.s3.${AWS::Region}.amazonaws.com/tenant-onboarding-fsx.yaml' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarly this should be AWS::URLSuffix to support aws-cn
| StringBuilder cli = new StringBuilder(); | ||
| cli.append("aws cloudformation create-stack --stack-name "); | ||
| cli.append(stackName); | ||
| cli.append(" --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --template-url "); | ||
| cli.append(templateUrl); | ||
| cli.append(" --notification-arns "); | ||
| cli.append(ONBOARDING_APP_STACK_SNS); | ||
| cli.append(" --parameters "); | ||
| for (Parameter parameter : templateParameters) { | ||
| cli.append("ParameterKey="); | ||
| cli.append(parameter.parameterKey()); | ||
| cli.append(",ParameterValue=\""); | ||
| cli.append(parameter.parameterValue()); | ||
| cli.append("\" "); | ||
| } | ||
| LOGGER.info(cli.toString()); | ||
| String stackId; | ||
| try { | ||
| CreateStackResponse cfnResponse = cfn.createStack(CreateStackRequest.builder() | ||
| .stackName(stackName) | ||
| .disableRollback(true) // For ease in debugging of failed stacks. Maybe not appropriate for "production". | ||
| .disableRollback(true) //TODO undo this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this debugging data
resources/tenant-onboarding-fsx.yaml
Outdated
| OntapConfiguration: | ||
| JunctionPath: /vol1 | ||
| SecurityStyle: NTFS | ||
| SizeInMegabytes: '40' # Quoted to make cfn-lint happy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not make this a Parameter with a default of '40'?
volume size a template parameter.
PoeppingT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the changes.
resources
can pass it to the FSx file system resource
resolve it in CloudFormation for the storage virtual machine resource
and FSx ONTAP
storage virtual machine
Co-authored-by: netapp-vedantsethia Vedant.Sethia@netapp.com
Co-authored-by: netapp-dhruv-tyagi Dhruv.Tyagi@netapp.com
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license