-
-
Notifications
You must be signed in to change notification settings - Fork 140
External API
Toshimitsu Takahashi edited this page Feb 7, 2021
·
4 revisions
Sending the configuration after 10 seconds from browser started. If the sending processing does not wait for a moment, the other extensions may not have launched.
{
"name": "AESR Configuration Sender",
"version": "0.0.1",
"description": "Config sender",
"short_name": "AESR Sender",
"background": {
"scripts": [
"js/background.js"
],
"persistent": false
},
"manifest_version": 2
}
const AESR_ExtensionId = "<AWS Extend Switch Roles extension ID>";
chrome.runtime.onStartup.addListener(function () {
setTimeout(function () {
const rawIniStr = `
[profile marketingadmin]
role_arn = arn:aws:iam::123456789012:role/marketingadmin
color = ffaaee
[anotheraccount]
aws_account_id = 987654321987
role_name = anotherrole
region=ap-northeast-1
[athirdaccount]
aws_account_id = 987654321988
role_name = athirdrole
image = "https://via.placeholder.com/150"
`;
chrome.runtime.sendMessage(AESR_ExtensionId, {
action: 'updateConfig',
dataType: 'ini',
data: rawIniStr
}, function(response) {});
}, 10000);
});
AWS Extend Switch Roles extension ID
-
Chrome Extension
jpmkfafbacpgapdghgdpembnojdlgkdl
-
Firefox Add-on
aws-extend-switch-roles@toshi.tilfin.com
- Open the option page of AWS Extend Switch Roles
- Input the sender extension ID into Config sender extension ID