We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Check if IAM role already exists and then skip creating a new one.
try: create_response = iam_client.create_role( Path='/', RoleName=role_name, Description=role_description, AssumeRolePolicyDocument = role_policy_document ) logger.debug(f"Got response from IAM client for creating role : {create_response}") logger.info(f"Role create response code : {create_response['ResponseMetadata']['HTTPStatusCode']}") except Exception as e: logger.error(f"Error occured while creating role : {e}") return False
The text was updated successfully, but these errors were encountered:
san089
No branches or pull requests
Check if IAM role already exists and then skip creating a new one.
The text was updated successfully, but these errors were encountered: