Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2A86A95E for ; Tue, 12 Sep 2023 19:54:56 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230912194917euoutp0259c867ca33dd924a46673aa81602dcba~EPpI2P2lo1806918069euoutp02Q for ; Tue, 12 Sep 2023 19:49:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230912194917euoutp0259c867ca33dd924a46673aa81602dcba~EPpI2P2lo1806918069euoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694548157; bh=KLp4dgSXuem7URmmXglLY1WKiLKtOwRTLOxL5lHN38Y=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=FMo11V2hUA1IA/pj64AtO3gKf0+y483vps/fsXe77DlofHmFt9UKFlKemyQjODAOd 7F9dZ/KGNeYUA5R7z6NtIp1ItxkTQoZF7xQsRAU0t9vLlcunZ+xgM4fLa7sgo/1PWk Hohtb7SrIvJJ8PGkAuQr7naV5H6hDUK4CHVFFCV4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230912194917eucas1p15640661b5923480a9ab17605ae2e7266~EPpIkOaAO1540015400eucas1p1X; Tue, 12 Sep 2023 19:49:17 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id E2.F8.37758.DB0C0056; Tue, 12 Sep 2023 20:49:17 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20230912194916eucas1p18db4cbc48e72969e5ab4bdb7a0bb1ae9~EPpH13XE_3227932279eucas1p1i; Tue, 12 Sep 2023 19:49:16 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230912194916eusmtrp1e9279ec7f02a2a9c78c56d80effad776~EPpH1a_PX1590215902eusmtrp1R; Tue, 12 Sep 2023 19:49:16 +0000 (GMT) X-AuditID: cbfec7f5-7ffff7000002937e-8c-6500c0bd9b6c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3C.67.14344.CB0C0056; Tue, 12 Sep 2023 20:49:16 +0100 (BST) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230912194916eusmtip257e891aaaeb34d7ec26e3ac704389e0d~EPpHnNxzn0618206182eusmtip2_; Tue, 12 Sep 2023 19:49:16 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 Sep 2023 20:49:15 +0100 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Tue, 12 Sep 2023 20:49:15 +0100 From: Daniel Gomez To: "mcgrof@kernel.org" CC: "kdevops@lists.linux.dev" , "jlayton@kernel.org" , Daniel Gomez Subject: [PATCH 2/5] terraform: aws: hide AWS availability region option Thread-Topic: [PATCH 2/5] terraform: aws: hide AWS availability region option Thread-Index: AQHZ5bI1b48MuveaXkuZhgTQQu7d8A== Date: Tue, 12 Sep 2023 19:49:14 +0000 Message-ID: <20230912194908.939107-3-da.gomez@samsung.com> In-Reply-To: <20230912194908.939107-1-da.gomez@samsung.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [106.110.32.103] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgleLIzCtJLcpLzFFi42LZduzned29BxhSDU6u4rT4uWwVu8XPNS+Z LW5MeMrowOyxaVUnm8eLzTMZA5iiuGxSUnMyy1KL9O0SuDKuzX7LWnBXouLp403MDYyvhbsY OTkkBEwkbu3fyt7FyMUhJLCCUWLejLWsEM4XRonGUx8ZIZzPjBIbbj1mhmnpb3zIApFYzijR 8WoRC1zVswkw/WcYJV4/PccG0iIksJJRoqvZC8RmE9CU2HdyEzuILSKgLfFzz1RGEJtZoJtR 4sqxKBBbWMBD4tbZR2wQNf4Sz1/tZYSw9SQ2/oXoZRFQldjX/BAszitgJfHj6huw8zgFrCWW fn8FZjMKyEo8WvmLHWK+uMStJ/OZIF4QlFg0ew/UO2IS/3Y9ZIOwdSTOXn/CCGEbSGxduo8F wlaS+NOxEOpOPYkbU6ewQdjaEssWvmaGuEFQ4uTMJ+CQkBDo55R4NGE6O0Szi8TFix2sELaw xKvjW6DiMhKnJ/ewTGDUnoXkvllIdsxCsmMWkh0LGFlWMYqnlhbnpqcWG+ellusVJ+YWl+al 6yXn525iBCaS0/+Of93BuOLVR71DjEwcjIcYJTiYlUR4Sw79TRHiTUmsrEotyo8vKs1JLT7E KM3BoiTOq217MllIID2xJDU7NbUgtQgmy8TBKdXA5GvdzJkhf+9YtMJhs78mjT48S1K+XJ/6 Y//rd88Er5m0yUUlzY1cJ1ye1zif6fX3oquH5rt8yLi56YCU/vvpt6o5TNxu7Zy2nmnVI4Zz XBPni/pJv37XfIX/NGeAWYf2Mk+dzOCs2YLGx/LcVK4Y1HXbfuaP4DSW+HL6WVfPgUW8hq3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5dZn7g7NlzySu/Pm+9XK06buXWby 4ca5JM0zv6uXLfR3YglfHijz6EHK0YnmSb4pG0s4i62KC2dkrfNfZPX4315G01DxcqEFTTdn VQUrys70WKw643nmPKU5zSECsw+9LFK+ffml1y6W6GUFcrtWlC6NdD/W++FdjWvY87QbS9wt 1uqfcQiuu3BG+NMP+czSZ2V+AptcVpRY/HOM8P+z83FEDifDRHPXFX3HTjlMkI1UYinOSDTU Yi4qTgQA4FVECJADAAA= X-CMS-MailID: 20230912194916eucas1p18db4cbc48e72969e5ab4bdb7a0bb1ae9 X-Msg-Generator: CA X-RootMTR: 20230912194916eucas1p18db4cbc48e72969e5ab4bdb7a0bb1ae9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230912194916eucas1p18db4cbc48e72969e5ab4bdb7a0bb1ae9 References: <20230912194908.939107-1-da.gomez@samsung.com> This commit is part of the propagation fix found by Jeff Layton in the choice/endchoice Kconfig option. TERRAFORM_AWS_AV_REGION is a multichoice with single choice option as it depends on AWS region multichoice option. Hide the option by removing the string and assign the value automatically with its AWS region option dependency. Also, s/aws/AWS/g. Signed-off-by: Daniel Gomez --- terraform/aws/Kconfig | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/terraform/aws/Kconfig b/terraform/aws/Kconfig index 158a0d63..cf3d59f0 100644 --- a/terraform/aws/Kconfig +++ b/terraform/aws/Kconfig @@ -7,21 +7,21 @@ choice config TERRAFORM_AWS_US_WEST_1 bool "us-west-1 - North California" help - This option will set the aws region to us-west-1. + This option will set the AWS region to us-west-1. =20 config TERRAFORM_AWS_US_WEST_2 bool "us-west-2 - Oregon" help - This option will set the aws region to us-west-2. + This option will set the AWS region to us-west-2. =20 endchoice =20 config TERRAFORM_AWS_REGION - string "AWS region" + string default "us-west-1" if TERRAFORM_AWS_US_WEST_1 default "us-west-2" if TERRAFORM_AWS_US_WEST_2 help - This option will set the aws region to the specified value. + This option will set the AWS region to the specified value. =20 If you wish to expand on this list send a patch after reading this list: @@ -30,7 +30,7 @@ config TERRAFORM_AWS_REGION =20 Note that if you change region the AMI may change as well even for the same distribution. At least that applies to Amazon EC2 - optimized images. Use the aws console, to set that up it will + optimized images. Use the AWS console, to set that up it will ask you for your credentials and then a region. Before adding an entry for ami image be sure you are on the region and then query with something like: @@ -57,30 +57,12 @@ config TERRAFORM_AWS_REGION aws ec2 describe-images --image-ids ami-0699f753302dd8b00 | grep OwnerI= d "OwnerId": "137112412989", =20 -choice - prompt "AWS availability region to use" - default TERRAFORM_AWS_AV_US_WEST_1B - -config TERRAFORM_AWS_AV_US_WEST_1B - bool "us-west-1b" - depends on TERRAFORM_AWS_US_WEST_1 - help - This option will set the aws availiability region to us-west-1b. - -config TERRAFORM_AWS_AV_US_WEST_2B - bool "us-west-2b" - depends on TERRAFORM_AWS_US_WEST_2 - help - This option will set the aws availiability region to us-west-2b. - -endchoice - config TERRAFORM_AWS_AV_REGION - string "AWS availablity region" - default "us-west-1b" if TERRAFORM_AWS_AV_US_WEST_1B - default "us-west-2b" if TERRAFORM_AWS_AV_US_WEST_2B + string + default "us-west-1b" if TERRAFORM_AWS_US_WEST_1 + default "us-west-2b" if TERRAFORM_AWS_US_WEST_2 help - This option will set the aws availablity region to the specified + This option will set the AWS availablity region to the specified value. =20 If you wish to expand on this list send a patch after reading this --=20 2.39.2