我已经为EB配置了Python应用程序,安装private void pictureBox5_Click_1(object sender, EventArgs e)
{
using (SqlConnection con = new SqlConnection("Data Source=DESKTOP-EU4PTNQ;Initial Catalog=Medrive;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"))
{
con.Open();
if (bunifuTextBox2.Text != "")
{
string DescriptionQueryStr = "Select CName from Ciphers";
using (SqlCommand cmd = new SqlCommand(DescriptionQueryStr, con))
{
string[] tbVals = bunifuTextBox2.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0; i < tbVals.Length; i++)
{
DescriptionQueryStr = "where Description=@Description" + i.ToString() + "OR";
cmd.Parameters.Add("@Description" + i.ToString(), SqlDbType.VarChar).Value = tbVals[i];
}
//Strip off the last OR
DescriptionQueryStr = DescriptionQueryStr.Substring(0, DescriptionQueryStr.Length - 2);
StringBuilder sb = new StringBuilder();
using (SqlDataReader da = cmd.ExecuteReader())
{
if (da.Read())
{
var hasAnotherRecord = true;
while (hasAnotherRecord)
{
sb.AppendLine(da.GetValue(0).ToString());
hasAnotherRecord = da.Read();
if (hasAnotherRecord )
sb.Append('-');
}
}
}
TAbunifuTextBox10.Text = sb.ToString();
System.Diagnostics.Debug.Write("Hello via Debug!");
}
}
}
}
后,我输入了错误的用户名和访问密钥,现在无法更改它,
当我尝试awsebcli
时出现以下错误,
eb init -p python=3.6 env
我尝试执行以下命令eb init,eb config,但仍然导致相同的错误。
我正在遵循本指南> https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
答案 0 :(得分:1)
EB CLI在您的@Override
protected void configure(HttpSecurity http) throws Exception {
http
.csrf().disable()
.httpBasic()
.and()
.authorizeRequests()
.antMatchers("/api/register/**").permitAll()
.antMatchers("/api/quizzes/**").authenticated()
.and()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);
}
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth
.userDetailsService(userDetailsService)
.passwordEncoder(passwordEncoder);
}
文件中创建一个配置文件。
例如
~/.aws/config
因此,您可以在此文件中将密钥更改为正确的密钥。