Skip to content

Instantly share code, notes, and snippets.

View kendrickm's full-sized avatar
🍇

Kendrick kendrickm

🍇
View GitHub Profile
import { EventBridgeClient, PutEventsCommand } from "@aws-sdk/client-eventbridge"; // ES Modules impor
import { STSClient, AssumeRoleCommand } from "@aws-sdk/client-sts";
// const { EventBridgeClient, PutEventsCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import
const sts = new STSClient({ region: 'us-east-1' });
const getCrossAccountCredentials = async () => {
try{
const command = new AssumeRoleCommand({
// The Amazon Resource Name (ARN) of the role to assume.
RoleArn: "arn:aws:iam::086873376431:role/OrganizationAccountAccessRole",
@kendrickm
kendrickm / josh.py
Last active June 28, 2018 19:22
maybe how python works?
master_list = {}
second_list = ["butts","butt","ass", "asses"]
for x in second_list:
temp_list = []
for s in x:
temp_list.append(s)
master_list[x] = temp_list
### Keybase proof
I hereby claim:
* I am kendrickm on github.
* I am kmartinix (https://keybase.io/kmartinix) on keybase.
* I have a public key whose fingerprint is 91EB 599B D016 3B99 EC5C DEFB 3811 4AD3 CD7C 6CD1
To claim this, I am signing this object: