Beispiel #1
0
def aws_create_iam_user_parser_arguments(aws_parser: argparse):
    iam_user_command_group = aws_parser.add_argument_group(
        "iam_user", "Arguments to add IAM user")

    iam_user_command_group.add_argument("--add_iam_user",
                                        action="store_true",
                                        help="Add IAM user to AWS account")
    iam_user_command_group.add_argument("--user_name",
                                        type=str,
                                        required=False,
                                        help="User name of the IAM user")
Beispiel #2
0
def aws_destroy_iam_policy_parser_arguments(aws_parser: argparse):
    iam_policy_command_group = aws_parser.add_argument_group(
        "iam_policy", "Arguments to add IAM policy")

    iam_policy_command_group.add_argument(
        "--delete_iam_policy",
        action="store_true",
        help="Delete IAM policy from AWS account",
    )
    iam_policy_command_group.add_argument("--policy_name",
                                          type=str,
                                          required=False,
                                          help="Policy name to be destroyed")
Beispiel #3
0
def aws_attach_iam_policy_parser_arguments(aws_parser: argparse):
    iam_policy_command_group = aws_parser.add_argument_group(
        "iam_policy_attach", "Arguments to attach IAM policy to the user")

    iam_policy_command_group.add_argument("--attach_iam_policy",
                                          action="store_true",
                                          help="Attaches IAM policy to a user")
    iam_policy_command_group.add_argument("--iam_policy_name",
                                          type=str,
                                          required=False,
                                          help="Policy to be attached")
    iam_policy_command_group.add_argument("--iam_user_name",
                                          type=str,
                                          required=False,
                                          help="Attach policy to user")
Beispiel #4
0
def aws_create_iam_policy_parser_arguments(aws_parser: argparse):
    iam_policy_command_group = aws_parser.add_argument_group(
        "iam_policy", "Arguments to add IAM policy")

    iam_policy_command_group.add_argument("--add_iam_policy",
                                          action="store_true",
                                          help="Add IAM policy to AWS account")
    iam_policy_command_group.add_argument("--policy_name",
                                          type=str,
                                          required=False,
                                          help="Policy name to be created")

    iam_policy_command_group.add_argument("--firehose_stream_name",
                                          type=str,
                                          required=False,
                                          help="Firehose stream name")

    iam_policy_command_group.add_argument("--data_bucket_name",
                                          type=str,
                                          required=False,
                                          help="Data bucket name")

    iam_policy_command_group.add_argument("--config_bucket_name",
                                          type=str,
                                          required=False,
                                          help="Config bucket name")

    iam_policy_command_group.add_argument("--database_name",
                                          type=str,
                                          required=False,
                                          help="Database name")

    iam_policy_command_group.add_argument("--table_name",
                                          type=str,
                                          required=False,
                                          help="Table name")

    iam_policy_command_group.add_argument("--cluster_name",
                                          type=str,
                                          required=False,
                                          help="ECS cluster name")

    iam_policy_command_group.add_argument(
        "--ecs_task_execution_role_name",
        type=str,
        required=False,
        help="ECS task execution role name",
    )