This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |