当尝试使用Jenkins将Sping Boot 应用程序部署到AWS Elastic beanstalk时,我收到以下错误。这曾经没有问题地部署,但最近开始出现此错误。
botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the CreateEnvironment operation: Tag key 'Name' is reserved and can't be modified.
字符串
下面是用于设置cloudformation堆栈的配置。
[
{
"OptionName": "ELBSubnets",
"Namespace": "aws:ec2:vpc",
"ExportName": "apis-nonprod-vpc-apis-sit-vpc::PublicSubnets"
},
{
"OptionName": "Subnets",
"ResourceName": "AWSEBAutoScalingGroup",
"Namespace": "aws:ec2:vpc",
"ExportName": "apis-nonprod-vpc-apis-sit-vpc::PrivateSubnets"
},
{
"OptionName": "VPCId",
"ResourceName": "AWSEBLoadBalancerSecurityGroup",
"Namespace": "aws:ec2:vpc",
"ExportName": "apis-nonprod-vpc-apis-sit-vpc::VpcId"
},
{
"OptionName": "EC2KeyName",
"Namespace": "aws:autoscaling:launchconfiguration",
"Value": "develop-apis-sit"
},
{
"Namespace": "aws:elasticbeanstalk:customoption",
"OptionName": "SecretBucket",
"Value": "apis-sit-secrets"
},
{
"OptionName": "spring.profiles.active",
"Namespace": "aws:elasticbeanstalk:application:environment",
"Value": "sit"
},
{
"OptionName": "IamInstanceProfile",
"Namespace": "aws:autoscaling:launchconfiguration",
"ExportName": "app-dev::EbsInstanceIamInstanceProfileName"
},
{
"OptionName": "SSMParameterNamespace",
"Namespace": "aws:elasticbeanstalk:customoption",
"Value": "app-dev"
},
{
"OptionName": "BatchSize",
"Namespace": "aws:elasticbeanstalk:command",
"Value": "1"
},
{
"OptionName": "AppDynamicsAgentBucket",
"Namespace": "aws:elasticbeanstalk:customoption",
"Value": "appdynamics-agents-nonprod"
}
]
型
1条答案
按热度按时间m0rkklqb1#
Name
是Elastic Beanstalk默认应用于您的环境的少数标签之一,您无法编辑这些默认标签。从AWS Doc:
Elastic Beanstalk将环境标记应用于环境资源本身,以及Elastic Beanstalk为环境创建的其他AWS资源。
默认情况下,Elastic Beanstalk会将一些标签应用到您的环境中:
elasticbeanstalk:environment-name
-环境的名称。elasticbeanstalk:environment-id
-环境ID。Name
-也是环境的名称。Name
在Amazon EC2 Jmeter 板中用于标识和排序资源。这些默认标签不能编辑。