You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def get_latest_stable_release(self):
"""
Fetches the latest release version from the specified GitHub repository.
Returns:
str: The latest release version.
"""
test = data_aws_ssm_parameters_by_path.DataAwsSsmParametersByPath(
self.terraform_stack,
"get_ami_version",
path="/aws/service/bottlerocket/aws-k8s-1.30/x86_64/latest/image_version",
with_decryption=True
)
latest_ami_version = Fn.element(test.values, 0)
test = TerraformOutput(self.terraform_stack, "latest_ami_version", value=Fn.element(test.values, 0))
print("----------------------")
latest_ami_version = test.value
return latest_ami_version
Regression Issue
Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
for the above code I need the latest version which comes in the output, tried various ways to extract the output but failed, is this the correct way to write the code in cdktf
Current Behavior
error for the above code says list is empty
Reproduction Steps
from cdktf_cdktf_provider_aws import data_aws_ssm_parameters_by_path
def get_latest_stable_release(self):
"""
Fetches the latest release version from the specified GitHub repository.
Returns:
str: The latest release version.
"""
test = data_aws_ssm_parameters_by_path.DataAwsSsmParametersByPath(
self.terraform_stack,
"get_ami_version",
path="/aws/service/bottlerocket/aws-k8s-1.30/x86_64/latest/image_version",
with_decryption=True
)
latest_ami_version = Fn.element(test.values, 0)
test = TerraformOutput(self.terraform_stack, "latest_ami_version", value=Fn.element(test.values, 0))
print("----------------------")
latest_ami_version = test.value
return latest_ami_version
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.147.0
Framework Version
No response
Node.js Version
v22.4.1
OS
mac
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
khushail
added
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Nov 7, 2024
Please open issue with Terraform-cdk. I am closing this one now
khushail
removed
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
bug
This issue is a bug.
labels
Nov 7, 2024
Describe the bug
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
for the above code I need the latest version which comes in the output, tried various ways to extract the output but failed, is this the correct way to write the code in cdktf
Current Behavior
error for the above code says list is empty
Reproduction Steps
from cdktf_cdktf_provider_aws import data_aws_ssm_parameters_by_path
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.147.0
Framework Version
No response
Node.js Version
v22.4.1
OS
mac
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: