class StackRequestManifester {

    @VisibleForTesting
    void setupInstanceVolumeEncryption(StackV4Request stackRequest, String cloudPlatform, String accountId) {
        if (CloudPlatform.AWS.name().equals(cloudPlatform) && entitlementService.freeIpaDlEbsEncryptionEnabled(INTERNAL_ACTOR_CRN, accountId)) {
            stackRequest.getInstanceGroups().forEach(ig -> {
                AwsInstanceTemplateV4Parameters aws = ig.getTemplate().createAws();
                AwsEncryptionV4Parameters encryption = aws.getEncryption();
                if (encryption == null) {
                    encryption = new AwsEncryptionV4Parameters();
                    aws.setEncryption(encryption);
                }
                if (encryption.getType() == null) {
                    // FIXME Enable EBS encryption with appropriate KMS key
                    encryption.setType(EncryptionType.DEFAULT);
                }
            });
        }
    }

}