Skip to content

Upgrade pulumi-aws provider from v6 to v7 across all infrastructure projects#647

Merged
skearnes merged 2 commits intomainfrom
neo/upgrade-aws-provider-v7
Feb 17, 2026
Merged

Upgrade pulumi-aws provider from v6 to v7 across all infrastructure projects#647
skearnes merged 2 commits intomainfrom
neo/upgrade-aws-provider-v7

Conversation

@pulumi
Copy link
Copy Markdown
Contributor

@pulumi pulumi bot commented Feb 17, 2026

Summary

Upgrades pulumi-aws from v6 to v7 across all four infrastructure projects (app, backend, domain, interface). Also pins pulumi-awsx and pulumi-random explicitly where used.

Changes

requirements.txt (all 4 projects)

  • pulumi-aws: >=6.0.2,<7.0.0 -> >=7.0.0,<8.0.0
  • Added explicit pulumi-awsx>=3.0.0,<4.0.0 pin (app, backend, interface)
  • Added explicit pulumi-random>=4.0.0,<5.0.0 pin (backend)

Code fixes for v7 compatibility

backend/main.py

  • Changed engine=cluster.engine (Output[str]) to engine=aws.rds.EngineType.AURORA_POSTGRESQL to satisfy stricter v7 enum typing on ClusterInstance

app/main.py & interface/main.py

  • Switched aws.ec2.get_vpc() to aws.ec2.get_vpc_output() to properly handle Output-typed arguments from stack references
  • Switched aws.secretsmanager.get_secret_version() to aws.secretsmanager.get_secret_version_output() for the same reason

domain/main.py

  • Updated create_records type annotation from list[CertificateDomainValidationOptionArgs] to Sequence[CertificateDomainValidationOption] to match the v7 output type from .apply()
  • Added null-safety checks for optional resource_record_value and resource_record_type fields

Deployment notes

Per the v7 migration guide, the first deployment after upgrading should use pulumi up --refresh --run-program to migrate state to be compatible with the new major version.

@skearnes skearnes self-requested a review February 17, 2026 02:18
@sonarqubecloud
Copy link
Copy Markdown

@skearnes skearnes requested review from bdeadman and removed request for skearnes February 17, 2026 03:33
@skearnes skearnes merged commit fdefb4d into main Feb 17, 2026
12 checks passed
@skearnes skearnes deleted the neo/upgrade-aws-provider-v7 branch February 17, 2026 15:09
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