Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## v0.8.1
- Feat: get externalId from GrafanaConfig for Grafana Assume Role [#315](https://github.com/grafana/grafana-aws-sdk-react/pull/315)
- Bump the npm-patch-dev-dependencies group with 3 updates [#311](https://github.com/grafana/grafana-aws-sdk-react/pull/311)
- Bump eslint-plugin-jsdoc from 51.4.1 to 54.4.0 [#304](https://github.com/grafana/grafana-aws-sdk-react/pull/304)

## v0.8.0

- Upgrade yarn to v4.10.3 in [#297](https://github.com/grafana/grafana-aws-sdk-react/pull/297)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@grafana/aws-sdk",
"version": "0.8.0",
"version": "0.8.1",
"description": "Common AWS features for grafana",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down
5 changes: 5 additions & 0 deletions src/components/ConnectionConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ export const ConnectionConfig: FC<ConnectionConfigProps> = (props: ConnectionCon
.filter(isAwsAuthType),
[tempCredsFeatureEnabled]
);
if (tempCredsFeatureEnabled && options.jsonData.authType === AwsAuthType.GrafanaAssumeRole) {
if (config.namespace.startsWith('stacks-')) {
props.externalId = config.namespace.substring(config.namespace.indexOf('-') + 1);
}
}
const currentProvider = awsAuthProviderOptions.find((p) => p.value === options.jsonData.authType);

useEffect(() => {
Expand Down