diff --git a/src/Components/CreateImageWizard/CreateImageWizard.tsx b/src/Components/CreateImageWizard/CreateImageWizard.tsx index 7a86b14e..bcaa79e6 100644 --- a/src/Components/CreateImageWizard/CreateImageWizard.tsx +++ b/src/Components/CreateImageWizard/CreateImageWizard.tsx @@ -74,6 +74,7 @@ import './CreateImageWizard.scss'; import { addImageType, changeArchitecture, + changeAwsShareMethod, changeDistribution, initializeWizard, selectAwsAccountId, @@ -235,6 +236,10 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => { dispatch(changeArchitecture(arch)); }; + if (process.env.IS_ON_PREMISE) { + dispatch(changeAwsShareMethod('manual')); + } + if (process.env.IS_ON_PREMISE && !isEdit) { if (!searchParams.get('release')) { initializeHostDistro(); diff --git a/src/Components/CreateImageWizard/steps/TargetEnvironment/Aws/index.tsx b/src/Components/CreateImageWizard/steps/TargetEnvironment/Aws/index.tsx index a5c7d6ef..8de40831 100644 --- a/src/Components/CreateImageWizard/steps/TargetEnvironment/Aws/index.tsx +++ b/src/Components/CreateImageWizard/steps/TargetEnvironment/Aws/index.tsx @@ -68,19 +68,21 @@ const Aws = () => { by Red Hat, to your own AWS account. - { - dispatch(changeAwsSourceId(undefined)); - dispatch(changeAwsAccountId('')); - dispatch(changeAwsShareMethod('sources')); - }} - autoFocus - /> + {!process.env.IS_ON_PREMISE && ( + { + dispatch(changeAwsSourceId(undefined)); + dispatch(changeAwsAccountId('')); + dispatch(changeAwsShareMethod('sources')); + }} + autoFocus + /> + )} { dispatch(changeAwsAccountId('')); dispatch(changeAwsShareMethod('manual')); }} + autoFocus={!!process.env.IS_ON_PREMISE} /> {shareMethod === 'sources' && (