Skip to content

Commit a981bdc

Browse files
authored
Bump minimum shrub.py to 3.7 for ec2_assume_role (#1393)
1 parent 5904bac commit a981bdc

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

.evergreen/config_generator/components/sbom.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from config_generator.etc.utils import bash_exec
66

77
from shrub.v3.evg_build_variant import BuildVariant
8-
from shrub.v3.evg_command import BuiltInCommand, EvgCommandType, expansions_update, s3_put
8+
from shrub.v3.evg_command import BuiltInCommand, EvgCommandType, ec2_assume_role, expansions_update, s3_put
99
from shrub.v3.evg_task import EvgTask, EvgTaskRef
1010

1111
from pydantic import ConfigDict
@@ -20,23 +20,6 @@ class CustomCommand(BuiltInCommand):
2020
model_config = ConfigDict(arbitrary_types_allowed=True)
2121

2222

23-
def ec2_assume_role(
24-
role_arn: Optional[str] = None,
25-
policy: Optional[str] = None,
26-
duration_seconds: Optional[int] = None,
27-
command_type: Optional[EvgCommandType] = None,
28-
) -> CustomCommand:
29-
return CustomCommand(
30-
command="ec2.assume_role",
31-
params={
32-
"role_arn": role_arn,
33-
"policy": policy,
34-
"duration_seconds": duration_seconds,
35-
},
36-
type=command_type,
37-
)
38-
39-
4023
class CheckAugmentedSBOM(Function):
4124
name = 'check augmented sbom'
4225
commands = [

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ config_generator = [
3131
# .evergreen/config_generator/generate.py
3232
"packaging>=14.0",
3333
"pydantic>=2.8",
34-
"shrub-py>=3.6",
34+
"shrub-py>=3.7",
3535
]
3636

3737
make_release = [

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)