if (contextDoesNotContainsEC2Role(context)) {
parentMojo.getLog().warn("It is meaningless to launch a worker without an IAM Role. If you set in templateName, thats fine, but here's a warning for you");
};
context.setEnvironmentTierType("SQS/HTTP");
request.setCNAMEPrefix(null);
request.setTier(new EnvironmentTier().withName(context.getEnvironmentTierName()).withType(context.getEnvironmentTierType()).withVersion(context.getEnvironmentTierVersion()));
}
if (StringUtils.isNotBlank(context.getTemplateName())) {
request.setTemplateName(parentMojo.lookupTemplateName(
context.getApplicationName(), context.getTemplateName()));