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

Platform names as CloudFormation parameters. #60

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jcosteatcyberark
Copy link

@jcosteatcyberark jcosteatcyberark commented Nov 4, 2020

This PR add the capability to customize Platform Parameters used by the lambda to onboard account.

New parameters are added to the CloudFormation templates, so that the user can specify custom platforms during deployment. Previously hardcoded platforms are now default in the CF template. The README.md has been updated accordingly!

This PR also refactors up code in aws_services::get_params_from_param_store() and circumvent a limitation with the AWS GetParameter API call.

Add UnixPlatformName and WindowsPlatformName as
CloudFormartion parameters.
GetParameters API call is restricted to a maximum of 10 array members,
preventing boto3 client.get_parameters() from pulling more. This commit fixes
the issue by splitting the input array in chunks of 10 and calling the API
multiple times.

See https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_GetParameters.html
In the Vault Creation Cloudformation template:
UnixPlatformName default value is UnixSSHKeys.
WindowsSafeName default value
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.

1 participant