18772: address review feedback.
[arvados.git] / lib / cloud / ec2 / ec2.go
index 2cbe4cf290c1b0e7a9dcaaeb1b701242c0da1cd3..52b73f781c6bc63c2e4e2d3242ddc33c642157dc 100644 (file)
@@ -47,7 +47,7 @@ type ec2InstanceSetConfig struct {
        SubnetID           string
        AdminUsername      string
        EBSVolumeType      string
-       IamInstanceProfile string
+       IAMInstanceProfile string
 }
 
 type ec2Interface interface {
@@ -231,9 +231,9 @@ func (instanceSet *ec2InstanceSet) Create(
                        }}
        }
 
-       if instanceSet.ec2config.IamInstanceProfile != "" {
+       if instanceSet.ec2config.IAMInstanceProfile != "" {
                rii.IamInstanceProfile = &ec2.IamInstanceProfileSpecification{
-                       Name: aws.String(instanceSet.ec2config.IamInstanceProfile),
+                       Name: aws.String(instanceSet.ec2config.IAMInstanceProfile),
                }
        }