-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): assets can now depend on stacks #25536
Merged
Merged
Changes from 116 commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
ae44fc4
initial project structure
kaizencc b6fd1eb
skeleton implementation
kaizencc 6b59b29
get everything to compile
kaizencc 4ca12fe
delete extraneous files
kaizencc 6ee9d78
more untested progress
kaizencc 696d275
add bedrock for testing
kaizencc d73f27f
implement staging stack in synth
kaizencc 5153ef5
get basic test to succeed
kaizencc c3628f4
remove extra lines
kaizencc a3a4c79
forgot to commit
kaizencc fc52f21
tests for docker asset and file asset
kaizencc e292810
add in iam roles
kaizencc 3fd54e1
handle assets
kaizencc 12283bd
assets
kaizencc 8681478
small things
kaizencc ae2781e
2 tests
kaizencc 143df73
add no tokens
kaizencc d5a50c3
better error messaging
kaizencc d088ec8
more work
kaizencc f3673ca
bootstrap role
kaizencc 4b6944b
basic functionality for file assets
kaizencc 70d6d85
better role
kaizencc 3a96ee0
major clean up
kaizencc b7e0b6a
use bootstrapless synth
kaizencc b678df5
Merge branch 'main' into conroy/bootstrap
kaizencc b3eb0a6
expose appId to user
kaizencc 26985ab
rename folder
kaizencc f1462dd
rename
kaizencc 5dc7a5f
adr
kaizencc 42b8566
readme start
kaizencc 6e57c29
minor changes
kaizencc 2a5c44e
move appId to the app props
kaizencc fb50b3d
new tests
kaizencc 5483fe2
IStagingStack
kaizencc 543bafe
lifecylce rules and kms key
kaizencc 4085c79
wip of kms key debacle
kaizencc f4074b6
kms key works
kaizencc c3d1fff
update readme for new api
kaizencc 827fea1
remove app chnages
kaizencc b77eaf9
remove app chnages
kaizencc b8cd873
appid
kaizencc 7d115ca
massive changes to api but tests succeed
kaizencc 5754712
rename folder
kaizencc 46da1cc
add roles stuff without testing yet
kaizencc 20c8032
minor cleanups
kaizencc 3b55d82
error when mixing agnostic/non-agnostic stacks in an app
kaizencc e9b1030
additional bootstrap role test
kaizencc b168308
rename to app-staging-synthesizer
kaizencc 3eee189
add documentation everywhere and comment out docker code
kaizencc 4fbae1b
more docs
kaizencc d3ec8a7
couple more tests
kaizencc d8e3af3
Merge branch 'main' of https://github.com/aws/aws-cdk into conroy/boo…
kaizencc bdd8a71
get package to work under new repo restructure
kaizencc 806221e
rename to -alpha
kaizencc 6fcc13d
update package.json
kaizencc 6f6c9d3
Merge branch 'main' into conroy/bootstrap
kaizencc 477f81f
rename
kaizencc a9e4b5a
integ test works
kaizencc 9269b9c
resolve qualifier in the synth
kaizencc 9728364
90% of lifecycle rules for ephemeral assets
kaizencc 0487959
grant access to s3 bucket to deploy role
kaizencc 7460def
introduce new translation functions in core
kaizencc 08cd887
use new translation functions
kaizencc 794cc68
revamp bootstrap roles api
kaizencc 2104e68
move tests around
kaizencc 8a12d60
more test stuff
kaizencc 745770f
finish s3 lifecycle rule tests
kaizencc 5db8d0a
expose bucket prefix api
kaizencc 2f5f962
Merge remote-tracking branch 'origin/main' into conroy/bootstrap
rix0rrr 065e8d4
Fix build
rix0rrr 3d83f4a
env-agnostic test
kaizencc b7bed7e
Move some code around
rix0rrr 7e5ec32
Merge branch 'conroy/bootstrap' of github.com:aws/aws-cdk into conroy…
rix0rrr 9d080b5
Merge remote-tracking branch 'origin/main' into conroy/bootstrap
rix0rrr 6f33075
minor changes
kaizencc e4b15f4
Reorganize responsibilities between:
rix0rrr 1d836aa
Merge branch 'conroy/bootstrap' of github.com:aws/aws-cdk into conroy…
rix0rrr cd39826
Fix build issues
rix0rrr d79aba3
Merge remote-tracking branch 'origin/main' into conroy/bootstrap
rix0rrr b642943
awslint fixes
rix0rrr 2a84b5c
Fix unit tests
rix0rrr 2331ef4
asset dependencies
kaizencc 4aee77b
Merge branch 'conroy/bootstrap' of https://github.com/aws/aws-cdk int…
kaizencc b20cb04
wip of workgraph code. does not work yet, many errors
kaizencc ff3de55
Merge branch 'main' into conroy/bootstrap
kaizencc ffdfa8f
bigtime changes to the cli that are wip
kaizencc a0570d2
get to no compilation errors
kaizencc 06dd548
all tests in deploy.test succeed
kaizencc 16e46df
major overhaul of test to make it make sense
kaizencc c3268f7
fix rest of the tests in display.ts
kaizencc a0851eb
remove etraneous files
kaizencc 466e3cd
callback interface for deployArtifacts
kaizencc 13795c9
worknode is now an abstract class
kaizencc 9c0183a
Merge branch 'main' into conroy/bootstrap
kaizencc 01fc565
add disable prebuild to workgraph
kaizencc 075ed8b
typo
kaizencc c4af16e
nested assemblies
kaizencc 925812e
wip of app-staging stuff
kaizencc 62712b8
Pass deployRoleArn
rix0rrr 0c5e48c
integ tests r good
kaizencc a7b61a4
add assetname to ecr-assets
kaizencc 5290ad3
update integ test
kaizencc 0e25c13
more test updates
kaizencc 53287e0
Merge branch 'main' into conroy/bootstrap
kaizencc 21564fe
update sto ecr asets
kaizencc 0cc17e5
Merge branch 'conroy/bootstrap' of https://github.com/aws/aws-cdk int…
kaizencc 91389b0
grantread
kaizencc 2d9719e
more unit tests
kaizencc 475ebe9
unit test for gnostic stuff
kaizencc f0867bb
error when staging resource stack too large
kaizencc 06e3183
Change the work graph to put individual assets into it and publish th…
rix0rrr e814bfd
Remove files that should be part of a different PR
rix0rrr 3d9d0bb
More refactoring work
rix0rrr 6bd21cf
Remove more files that should be in a different PR
rix0rrr 0cd79b8
Fix tests
rix0rrr 1e8e2c5
Merge remote-tracking branch 'origin/main' into huijbers/refactor-assets
rix0rrr 743a679
Coverage a bit low
rix0rrr f91556b
Fix up some review comments
rix0rrr 61297f8
Remove duplicate status event
rix0rrr 762933c
Rename 'cloudformation-deployments' -> 'deployments', add priorities …
rix0rrr 57886f6
Lower coverage
rix0rrr 8971ad7
Made change in wrong file
rix0rrr c348f99
Fix improts & add dependency
rix0rrr 0a49f81
Add a test for node removal
rix0rrr 2285a97
3p licenses for some reason
rix0rrr 46d5d80
Move property, otherwise we have a breaking API change
rix0rrr c128525
Review comments
rix0rrr 5fc82da
Incorrect test translation
rix0rrr 0fc6754
Merge branch 'main' into huijbers/refactor-assets
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
29 changes: 29 additions & 0 deletions
29
packages/aws-cdk-lib/cx-api/test/fixtures/asset-depends/manifest.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"version": "0.0.0", | ||
"artifacts": { | ||
"MyStackName": { | ||
"type": "aws:cloudformation:stack", | ||
"environment": "aws://37736633/us-region-1", | ||
"properties": { | ||
"templateFile": "template.json" | ||
}, | ||
"dependencies": ["AssetManifest"], | ||
"metadata": { | ||
} | ||
}, | ||
"AssetManifest": { | ||
"type": "cdk:asset-manifest", | ||
"properties": { | ||
"file": "asset.json" | ||
}, | ||
"dependencies": ["StagingStack"] | ||
}, | ||
"StagingStack": { | ||
"type": "aws:cloudformation:stack", | ||
"environment": "aws://1111/us-region-1", | ||
"properties": { | ||
"templateFile": "template.json" | ||
} | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/aws-cdk-lib/cx-api/test/fixtures/asset-depends/template.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Resources": { | ||
"MyBucket": { | ||
"Type": "AWS::S3::Bucket" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oopsies, this is me. IIRC we can simply remove the topologicalSort altogether because we don't care about the order of renderArtifacts anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not comfortable outright removing it. I'll make it an option.