Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Console Recorder for AWS - Bug
# pip install boto3
import boto3
lambda_client = boto3.client('lambda', region_name='us-west-2')
response = lambda_client.list_functions()
iam_client = boto3.client('iam', region_name='us-west-2')
response = iam_client.list_roles()
response = lambda_client.create_function(
Code={
'ZipFile': 'UEsDBAoAAAAAAG1VWE03NP4vpQAAAKUAAAASAAAAbGFtYmRhX2Z1bmN0aW9uLnB5aW1wb3J0IGpzb24KCmRlZiBsYW1iZGFfaGFuZGxlcihldmVudCwgY29udGV4dCk6CiAgICAjIFRPRE8gaW1wbGVtZW50CiAgICByZXR1cm4gewogICAgICAgICdzdGF0dXNDb2RlJzogMjAwLAogICAgICAgICdib2R5JzoganNvbi5kdW1wcygnSGVsbG8gZnJvbSBMYW1iZGEhJykKICAgIH0KUEsBAh4DCgAAAAAAbVVYTTc0/i+lAAAApQAAABIAAAAAAAAAAAAAAKSBAAAAAGxhbWJkYV9mdW5jdGlvbi5weVBLBQYAAAAAAQABAEAAAADVAAAAAAA='
},
Description='',
FunctionName='testtt',
Handler='lambda_function.lambda_handler',
MemorySize=128,
Role='arn:aws:iam::XXX:role/service-role/testtt-role-5hryvu3e',
Runtime='python3.6',
Timeout=3,
DeadLetterConfig={
},
KMSKeyArn='',
TracingConfig={
'Mode': 'PassThrough'
}
)
response = lambda_client.create_function(
Code={
'ZipFile': 'UEsDBAoAAAAAAG1VWE03NP4vpQAAAKUAAAASAAAAbGFtYmRhX2Z1bmN0aW9uLnB5aW1wb3J0IGpzb24KCmRlZiBsYW1iZGFfaGFuZGxlcihldmVudCwgY29udGV4dCk6CiAgICAjIFRPRE8gaW1wbGVtZW50CiAgICByZXR1cm4gewogICAgICAgICdzdGF0dXNDb2RlJzogMjAwLAogICAgICAgICdib2R5JzoganNvbi5kdW1wcygnSGVsbG8gZnJvbSBMYW1iZGEhJykKICAgIH0KUEsBAh4DCgAAAAAAbVVYTTc0/i+lAAAApQAAABIAAAAAAAAAAAAAAKSBAAAAAGxhbWJkYV9mdW5jdGlvbi5weVBLBQYAAAAAAQABAEAAAADVAAAAAAA='
},
Description='',
FunctionName='testtt',
Handler='lambda_function.lambda_handler',
MemorySize=128,
Role='arn:aws:iam::XXX:role/service-role/testtt-role-5hryvu3e',
Runtime='python3.6',
Timeout=3,
DeadLetterConfig={
},
KMSKeyArn='',
TracingConfig={
'Mode': 'PassThrough'
}
)
response = lambda_client.create_function(
Code={
'ZipFile': 'UEsDBAoAAAAAAG1VWE03NP4vpQAAAKUAAAASAAAAbGFtYmRhX2Z1bmN0aW9uLnB5aW1wb3J0IGpzb24KCmRlZiBsYW1iZGFfaGFuZGxlcihldmVudCwgY29udGV4dCk6CiAgICAjIFRPRE8gaW1wbGVtZW50CiAgICByZXR1cm4gewogICAgICAgICdzdGF0dXNDb2RlJzogMjAwLAogICAgICAgICdib2R5JzoganNvbi5kdW1wcygnSGVsbG8gZnJvbSBMYW1iZGEhJykKICAgIH0KUEsBAh4DCgAAAAAAbVVYTTc0/i+lAAAApQAAABIAAAAAAAAAAAAAAKSBAAAAAGxhbWJkYV9mdW5jdGlvbi5weVBLBQYAAAAAAQABAEAAAADVAAAAAAA='
},
Description='',
FunctionName='testtt',
Handler='lambda_function.lambda_handler',
MemorySize=128,
Role='arn:aws:iam::XXX:role/service-role/testtt-role-5hryvu3e',
Runtime='python3.6',
Timeout=3,
DeadLetterConfig={
},
KMSKeyArn='',
TracingConfig={
'Mode': 'PassThrough'
}
)
response = lambda_client.create_function(
Code={
'ZipFile': 'UEsDBAoAAAAAAG1VWE03NP4vpQAAAKUAAAASAAAAbGFtYmRhX2Z1bmN0aW9uLnB5aW1wb3J0IGpzb24KCmRlZiBsYW1iZGFfaGFuZGxlcihldmVudCwgY29udGV4dCk6CiAgICAjIFRPRE8gaW1wbGVtZW50CiAgICByZXR1cm4gewogICAgICAgICdzdGF0dXNDb2RlJzogMjAwLAogICAgICAgICdib2R5JzoganNvbi5kdW1wcygnSGVsbG8gZnJvbSBMYW1iZGEhJykKICAgIH0KUEsBAh4DCgAAAAAAbVVYTTc0/i+lAAAApQAAABIAAAAAAAAAAAAAAKSBAAAAAGxhbWJkYV9mdW5jdGlvbi5weVBLBQYAAAAAAQABAEAAAADVAAAAAAA='
},
Description='',
FunctionName='testtt',
Handler='lambda_function.lambda_handler',
MemorySize=128,
Role='arn:aws:iam::XXX:role/service-role/testtt-role-5hryvu3e',
Runtime='python3.6',
Timeout=3,
DeadLetterConfig={
},
KMSKeyArn='',
TracingConfig={
'Mode': 'PassThrough'
}
)
response = lambda_client.create_function(
Code={
'ZipFile': 'UEsDBAoAAAAAAG1VWE03NP4vpQAAAKUAAAASAAAAbGFtYmRhX2Z1bmN0aW9uLnB5aW1wb3J0IGpzb24KCmRlZiBsYW1iZGFfaGFuZGxlcihldmVudCwgY29udGV4dCk6CiAgICAjIFRPRE8gaW1wbGVtZW50CiAgICByZXR1cm4gewogICAgICAgICdzdGF0dXNDb2RlJzogMjAwLAogICAgICAgICdib2R5JzoganNvbi5kdW1wcygnSGVsbG8gZnJvbSBMYW1iZGEhJykKICAgIH0KUEsBAh4DCgAAAAAAbVVYTTc0/i+lAAAApQAAABIAAAAAAAAAAAAAAKSBAAAAAGxhbWJkYV9mdW5jdGlvbi5weVBLBQYAAAAAAQABAEAAAADVAAAAAAA='
},
Description='',
FunctionName='testtt',
Handler='lambda_function.lambda_handler',
MemorySize=128,
Role='arn:aws:iam::XXX:role/service-role/testtt-role-5hryvu3e',
Runtime='python3.6',
Timeout=3,
DeadLetterConfig={
},
KMSKeyArn='',
TracingConfig={
'Mode': 'PassThrough'
}
)
response = lambda_client.get_function_configuration(
FunctionName='testtt'
)
response = lambda_client.get_function(
FunctionName='testtt'
)
response = lambda_client.list_tags(
)
response = iam_client.get_role(
RoleName='testtt-role-5hryvu3e'
)
kms_client = boto3.client('kms', region_name='us-west-2')
response = kms_client.list_keys()
response = iam_client.list_roles()
ec2_client = boto3.client('ec2', region_name='us-west-2')
response = ec2_client.describe_vpcs()
response = lambda_client.get_function(
FunctionName='testtt'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.