Skip to content

InvalidSignatureException: Credential should be scoped to correct service: 'application-autoscaling'. #163

@ConradKurth

Description

@ConradKurth

Please fill out the sections below to help us address your issue.

2.0.0-preview.3

Version of Go (go version)?

go version go1.10 darwin/amd64

What issue did you see?

InvalidSignatureException: Credential should be scoped to correct service: 'application-autoscaling'.

Steps to reproduce

If you have have an runnable example, please include it.

	cfg, err := external.LoadDefaultAWSConfig()
	if err != nil {
		panic(err)
	}
	cfg.Region = endpoints.UsWest2RegionID

	scale := applicationautoscaling.New(cfg)
	req := scale.RegisterScalableTargetRequest(&applicationautoscaling.RegisterScalableTargetInput{
		MaxCapacity:       aws.Int64(200),
		MinCapacity:       aws.Int64(90),
		ResourceId:        aws.String("service/foo/bar"),
		ScalableDimension: applicationautoscaling.ScalableDimensionEcsServiceDesiredCount,
		ServiceNamespace:  applicationautoscaling.ServiceNamespaceEcs,
	})
	_, err = req.Send()
	if err != nil {
		panic(err)
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions