Skip to content
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

Error while trying to create FIS template with a pod action: aws:eks:pod-io-stress #3058

Closed
swathit0717 opened this issue Nov 28, 2023 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team

Comments

@swathit0717
Copy link

What happened?

Trying to create an FIS template with pod action: aws:eks:pod-io-stress.

If the resource_arns is not included in the target then the following error is reported
error: 1 error occurred:
* creating AWS FIS (Fault Injection Simulator) Experiment Template (Demo template for EKS POD IO stress): A target block requires one of resource_arns, resource_tag.

If the resource_arns is included in the target then the following error is reported
error: 1 error occurred:
* creating AWS FIS (Fault Injection Simulator) Experiment Template (Demo template for EKS POD IO stress): operation error fis: CreateExperimentTemplate, https response error StatusCode: 400, RequestID: c4c71028-0a4c-45ad-bb14-3d6f149c8c95, ValidationException: TargetResourceType aws:eks:pod does not support resourceArns.

Example

import pulumi
import pulumi_aws as aws

testtemplate = aws.fis.ExperimentTemplate("demo-pod-iostress",
description="Demo template for EKS POD IO stress",
role_arn="####IAM ROLE ARN",
stop_conditions=[aws.fis.ExperimentTemplateStopConditionArgs(
source="none",
)],
actions=[aws.fis.ExperimentTemplateActionArgs(
name="Demo-action-pod-iostress",
action_id="aws:eks:pod-io-stress",
target=aws.fis.ExperimentTemplateActionTargetArgs(
key="Pods",
value="Pod-group-1",
)
)],
targets=[aws.fis.ExperimentTemplateTargetArgs(
name="Pod-group-1",
resource_type="aws:eks:pod",
selection_mode= "ALL",
resource_arns=[
"###EKS CLUSTER ARN #####"
]
parameters={
"clusterIdentifier":"###EKS CLUSTER ARN ####",
"namespace":"default",
"selectorType":"deploymentName",
"selectorValue":"###POD NAME####"
}

)])

export("ExperimentID", testtemplate.id)

Output of pulumi about

pulumi about
CLI
Version 3.91.1+apple.2023-11-01.1812
Go Version go1.21.3
Go Compiler gc

Plugins
NAME VERSION
aws 6.10.0
cloudinit 1.3.0
kubernetes 4.5.3
python unknown
random 4.14.0
tls 4.11.0

Host
OS darwin
Version 13.5
Arch x86_64

This project is written in python: executable='........./venv/bin/python3' version='3.9.6'

Current Stack: swathi-test-podio

TYPE URN
pulumi:pulumi:Stack urn:pulumi:swathi-test-podio::test-pod-io::pulumi:pulumi:Stack::test-pod-io-swathi-test-podio
pulumi:providers:aws urn:pulumi:swathi-test-podio::test-pod-io::pulumi:providers:aws::sys_tags_lambda
pulumi:providers:aws urn:pulumi:swathi-test-podio::test-pod-io::pulumi:providers:aws::default_6_10_0
pulumi:providers:aws urn:pulumi:swathi-test-podio::test-pod-io::pulumi:providers:aws::default_6_0_2

Dependencies:
NAME VERSION
pip-tools 7.3.0

Pulumi locates its logs in /var/folders/54/1w1wmmfj1nsgd9w86sppwz0c0000gn/T/ by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@swathit0717 swathit0717 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team
Projects
None yet
Development

No branches or pull requests

1 participant