diff --git a/scenarios/aws/ec2/vm_run.go b/scenarios/aws/ec2/vm_run.go index 4d3fa6470..23935c6ce 100644 --- a/scenarios/aws/ec2/vm_run.go +++ b/scenarios/aws/ec2/vm_run.go @@ -105,11 +105,11 @@ func VMRunWithDocker(ctx *pulumi.Context) error { agentOptions = append(agentOptions, dockeragentparams.WithImageTag(env.AgentVersion())) } - if env.GetJMX() { + if env.AgentJMX() { agentOptions = append(agentOptions, dockeragentparams.WithJMX()) } - if env.GetFIPS() { + if env.AgentFIPS() { agentOptions = append(agentOptions, dockeragentparams.WithFIPS()) }