Skip to content

Fix SMUS compatibility: fallback role resolution and example workflow path alignment#71

Open
driftnine wants to merge 1 commit intoaws:mainfrom
driftnine:bug-bash-fixes
Open

Fix SMUS compatibility: fallback role resolution and example workflow path alignment#71
driftnine wants to merge 1 commit intoaws:mainfrom
driftnine:bug-bash-fixes

Conversation

@driftnine
Copy link

@driftnine driftnine commented Mar 6, 2026

What Changed
Added role resolution fallback logic for SMUS projects when tooling environment role discovery does not return a usable ARN.
Improved project membership handling to correctly derive owner-based role data for SMUS scenarios.
Aligned the example analytics workflow packaging and script path references so deployed workflow tasks resolve ETL scripts consistently.
Validation
Confirmed workflow creation now proceeds with fallback role resolution in SMUS.

@@ -27,18 +27,17 @@ stages:
dev:
stage: DEV
domain:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the domain name will be specific to individual use cases and hence our examples, which run as git hub actions, utilize tag based lookup. I would prefer to continue with the tag based lookup for the examples in the repo.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry thats not an intended change. I forgot to revert my specific use case changes before committing.

retries: 0
job_name: setup-covid-db-job
script_location: '{proj.connection.default.s3_shared.s3Uri}dashboard-glue-quick/bundle/glue_setup_covid_db.py'
script_location: '{proj.connection.default.s3_shared.s3Uri}etl-scripts/bundle/glue_setup_covid_db.py'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious, why are we changing the bundle path name?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the script already lies in dashboard-glue-quick folder in the repo, manifest file pointing to this folder duplicates the folder name

typer.echo(f"✅ DEBUG: Found userRoleArn={role_arn}")
return role_arn

# Fallback: Get role from project owners (for SMUS compatibility)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we use this in the manifest instead? Why do we need this fallback in the code?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just tried to fix in a less interfering way.Ideally it should be the project_role only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants