Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: preflight creates a furyagent config file with wrong keys #526

Open
Al-Pragliola opened this issue Jul 22, 2024 · 0 comments
Open

Bug: preflight creates a furyagent config file with wrong keys #526

Al-Pragliola opened this issue Jul 22, 2024 · 0 comments

Comments

@Al-Pragliola
Copy link
Contributor

it should take keys from the iam created in the infrastructure phase for furyagent, not the current profile ones

	accessKey, err := p.AWSRunner.Configure(true, "get", "aws_access_key_id")
	if err != nil {
		return fmt.Errorf("error getting aws access key: %w", err)
	}

	secretKey, err := p.AWSRunner.Configure(true, "get", "aws_secret_access_key")
	if err != nil {
		return fmt.Errorf("error getting aws secret key: %w", err)
	}

	operatorName := p.getOperatorName()

	furyAgentCfg := furyagent.AgentConfig{
		Storage: furyagent.Storage{
			Provider:     "s3",
			Region:       string(p.FuryctlConf.Spec.Region),
			BucketName:   bucketName,
			AwsAccessKey: accessKey,
			AwsSecretKey: secretKey,
		},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant