-
Notifications
You must be signed in to change notification settings - Fork 1
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
Bump Ubuntu Focal #24
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b90ee22
Bump Ubuntu Focal AMI
dagguh afdde11
Add `CanonicalAmiProvider.Builder.avoidUnattendedUpgrades`
dagguh b5a272e
Unpin Ubuntu Focal version by default
dagguh 8543d96
Simplify `CanonicalOwnerIdRegistry` impl
dagguh 519dcf1
Revert "Unpin Ubuntu Focal version by default"
dagguh 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,13 @@ Dropping a requirement of a major version of a dependency is a new contract. | |
## [Unreleased] | ||
[Unreleased]: https://github.com/atlassian-labs/aws-resources/compare/release-1.15.0...master | ||
|
||
### Added | ||
- Add `CanonicalAmiProvider.Builder.avoidUnattendedUpgrades` for bumping `imageName` to Focal or higher. | ||
|
||
### Fixed | ||
- Unpin Ubuntu Focal version in `CanonicalAmiProvider.Builder` by default. | ||
You can still pin a specific release date, e.g. `imageName("ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20240531")` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks |
||
|
||
## [1.15.0] - 2024-01-23 | ||
[1.15.0]: https://github.com/atlassian-labs/aws-resources/compare/release-1.14.0...release-1.15.0 | ||
|
||
|
17 changes: 6 additions & 11 deletions
17
src/main/kotlin/com/atlassian/performance/tools/aws/CanonicalOwnerIdRegistry.kt
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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
package com.atlassian.performance.tools.aws | ||
|
||
import com.amazonaws.regions.Regions | ||
import com.amazonaws.regions.Regions.* | ||
|
||
/** | ||
* Based on https://ubuntu.com/server/docs/cloud-images/amazon-ec2 | ||
* Based on https://documentation.ubuntu.com/aws/en/latest/aws-how-to/instances/find-ubuntu-images/#ownership-verification | ||
*/ | ||
internal object CanonicalOwnerIdRegistry { | ||
const val default = "099720109477" | ||
val byRegion = Regions.values().associate { | ||
it to when(it) { | ||
Regions.GovCloud -> "513442679011" | ||
Regions.CN_NORTH_1, | ||
Regions.CN_NORTHWEST_1 -> "837727238323" | ||
else -> default | ||
} | ||
fun forRegion(region: Regions?) = when (region) { | ||
GovCloud -> "513442679011" | ||
CN_NORTH_1, CN_NORTHWEST_1 -> "837727238323" | ||
else -> "099720109477" | ||
} | ||
|
||
fun forRegion(region: Regions?) = byRegion[region] ?: default | ||
} |
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
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.
Controversial, because it goes against repeatable builds (our Robustness value).
OTOH our first value is Meaningfulness and I bet our users do update their Ubuntus all the time (no evidence for the claim tho).
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.
We could rethink the approach if the less-repeatable builds around Ubuntu build would ever bite us. If we can easily switch back to the fixed build I think we are good to go.
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.
Nvm, see 519dcf1